17 QDebugStateSaver saver { dbg };
19 dbg.nospace () <<
"{ url: " << error.
Url_
20 <<
"; error: " << error.
Error_
28 :
std::runtime_error {
"network reply returned an error: " + error.ErrorText_.toStdString () }
29 , Error_ {
std::move (error) }
45 if (
const auto errPtr = std::get_if<NetworkReplyError> (
this))
64 qWarning () << errorContext << error;
65 return Result_t { errorContext +
' ' + error.ErrorText_ };
71 QDebugStateSaver saver { dbg };
const NetworkReplyError & GetError() const
NetworkReplyErrorException(NetworkReplyError error)
std::optional< NetworkReplyError > IsError() const
Either< QString, QByteArray > ToEither(const QString &errorContext) const
QByteArray GetReplyData() const
auto Visit(const Either< Left, Right > &either, Args &&... args)
QDebug operator<<(QDebug dbg, const CtString< N, Char > &str)
QNetworkReply::NetworkError Error_