private/RequestHandlerPrivate.cpp
/** ************************************************************************************************
    * @brief        Handle any regular network error.
    *
    * @details      There are two types of error: regular and authentication. Each has its own JSON
    *               format. handleRegularError() and handleAuthenticationError() process the JSON
    *               data differently.
    ***************************************************************************************************/
@brief        Handle any regular network error.
@details      There are two types of error: regular and authentication. Each has its own JSON
format. handleRegularError() and handleAuthenticationError() process the JSON
data differently.
@brief Handle any regular network error . @details There are two types of error : regular and authentication . Each has its own JSON format . handleRegularError () and handleAuthenticationError () process the JSON data differently .
void RequestHandlerPrivate::handleAuthenticationError(RequestHandlerPrivate::ErrorContext context, const QByteArray &errorData)
    {
        AuthenticationError error(QJsonDocument::fromJson(errorData).object());
        qWarning() << "Error in " << ERROR_CONTEXT_STRINGS[static_cast<int>(context)]
                   << ":" << error.getError() << "-" << error.getErrorDescription();
    }
void RequestHandlerPrivate :: handleAuthenticationError ( RequestHandlerPrivate :: ErrorContext context , const QByteArray & errorData ) { AuthenticationError error ( QJsonDocument :: fromJson ( errorData ) . object ( ) ) ; qWarning ( ) << " " << ERROR_CONTEXT_STRINGS [ static_cast < int > ( context ) ] << " " << error . getError ( ) << " " << error . getErrorDescription ( ) ; }
@brief        Handle any regular network error.
@brief Handle any regular network error .