18 QDebugStateSaver saver { dbg };
20 dbg.nospace () <<
"{ url: " << error.
Url_
21 <<
"; error: " << error.
Error_
29 : std::runtime_error {
"network reply returned an error: " + error.ErrorText_.toStdString () }
30 , Error_ { std::move (error) }
46 if (
const auto errPtr = std::get_if<NetworkReplyError> (
this))
65 LogAt (loc).warning () << error;
66 return Result_t { error.ErrorText_ };
77 qWarning () << errorContext << error;
78 return Result_t { error.ErrorText_ };
84 QDebugStateSaver saver { dbg };
const NetworkReplyError & GetError() const
NetworkReplyErrorException(NetworkReplyError error)
std::optional< NetworkReplyError > IsError() const
Either< QString, QByteArray > ToEither(const std::source_location &=std::source_location::current()) const
QByteArray GetReplyData() const
QMessageLogger LogAt(std::source_location loc)
auto Visit(const Either< Left, Right > &either, Args &&... args)
QDebug operator<<(QDebug dbg, const CtString< N, Char > &str)
QNetworkReply::NetworkError Error_