1 #ifndef __HWS_REQUEST_ERROR_H__
2 #define __HWS_REQUEST_ERROR_H__
5 #include <QSharedPointer>
100 QString mBaseMessageText;
105 typedef QSharedPointer<RequestError> RequestErrorPtr;
110 RequestErrorPtr parseRequestError(QByteArray content);
113 #endif // __HWS_REQUEST_ERROR_H__
static const int SSL_ERROR
A networking problem with SSL (flagged by Qt subsystem)
Definition: RequestError.h:26
void setCode(int c)
See error code constants defined in RequestError.h.
Definition: RequestError.cpp:72
short severity() const
Current severity, probably ERROR.
Definition: RequestError.cpp:77
void setSeverity(short s)
Set the severity.
Definition: RequestError.cpp:82
void setBaseMessageText(const QString &t)
Underling message, suitable for logging.
Definition: RequestError.cpp:62
static const int JSON_ERROR
A problem parsing JSON.
Definition: RequestError.h:29
const QString & baseMessageText() const
Underling message, suitable for logging.
Definition: RequestError.cpp:57
int code() const
See error code constants defined in RequestError.h.
Definition: RequestError.cpp:67
Severity
Definition: RequestError.h:48
static const int WEB_SOCKET_ERROR
Problems connecting to the notifications server.
Definition: RequestError.h:35
static const int AUTHENTICATION_ERROR
The session is likely invalid.
Definition: RequestError.h:32
RequestError & operator=(const RequestError &e)
Copy state from an existing RequestError.
Definition: RequestError.cpp:38
const QString & messageText() const
Possibly localized string coming from the server.
Definition: RequestError.cpp:47
Capture errors from different kinds of remote calls.
Definition: RequestError.h:17
~RequestError()
Typical destructor.
Definition: RequestError.cpp:34
static const int NETWORK_ERROR
A generic networking problem (flagged by Qt)
Definition: RequestError.h:23
void setMessageText(const QString &t)
Set the localized string.
Definition: RequestError.cpp:52
RequestError()
Creates a new request status for a successful operation.
Definition: RequestError.cpp:8