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 QMessageLogger {
loc.file_name (),
static_cast<int> (
loc.line ()),
loc.function_name () }.warning () << error;
65 return Result_t { error.ErrorText_ };
76 qWarning () << errorContext << error;
77 return Result_t { error.ErrorText_ };
83 QDebugStateSaver saver { dbg };
NetworkReplyErrorException(NetworkReplyError error)
auto Visit(const Either< Left, Right > &either, Args &&... args)
Either< QString, QByteArray > ToEither(const std::source_location &=std::source_location::current()) const
QNetworkReply::NetworkError Error_
const NetworkReplyError & GetError() const
std::optional< NetworkReplyError > IsError() const
QByteArray GetReplyData() const
QDebug operator<<(QDebug dbg, const CtString< N, Char > &str)