QtRestClient
3.0.0
A library for generic JSON-based REST-APIs, with a mechanism to map JSON to Qt objects
|
An exception that is throw on errors when awaiting a RestReply. More...
#include <restreplyawaitable.h>
Public Member Functions | |
AwaitedException (int code, RestReply::Error type, QVariant data) | |
Constructor, takes an error code, type and additional data. | |
int | errorCode () const |
Returns the error code. | |
RestReply::Error | errorType () const |
Returns the error type. | |
QVariant | errorData () const |
Returns the additional error data. | |
QVariantMap | errorObject () const |
Converts the error data to a map and returns it. | |
QVariantList | errorArray () const |
Converts the error data to a list and returns it. | |
QString | errorString () const |
Converts the error data to a string and returns it. | |
QString | errorString (const std::function< QString(QVariantMap, int)> &failureTransformer) const |
Converts the error data to a string using the transformer if neccessary and returns it. | |
QString | errorString (const std::function< QString(QVariantList, int)> &failureTransformer) const |
Converts the error data to a string using the transformer if neccessary and returns it. | |
const char * | what () const noexcept override |
Inherits QException::what. | |
virtual Q_NORETURN void | raise () const |
Inherits QException::raise. | |
virtual ExceptionBase * | clone () const |
Inherits QException::clone. | |
An exception that is throw on errors when awaiting a RestReply.
Definition at line 27 of file restreplyawaitable.h.