Qx v0.5.8
Qt Extensions Library
|
The NetworkReplyError class provides a full error object for QNetworkReply, similar to other Qt classes, that can be more convenient for processing errors than just QNetworkReply::NetworkError.
#include <qx/network/qx-networkreplyerror.h>
Public Member Functions | |
NetworkReplyError () | |
NetworkReplyError (QNetworkReply *reply, QUrl url) | |
bool | isValid () |
QString | text () |
QNetworkReply::NetworkError | type () |
QUrl | url () |
Qx::NetworkReplyError::NetworkReplyError | ( | ) |
Constructs an invalid network reply error that is equivalent to QNetworkReply::NetworkError::NoError.
Qx::NetworkReplyError::NetworkReplyError | ( | QNetworkReply * | reply, |
QUrl | url ) |
Constructs a network reply error from reply and url.
bool Qx::NetworkReplyError::isValid | ( | ) |
Returns true
if the error is valid; otherwise returns false
.
A network reply error is valid if its underlying type isn't QNetworkReply::NetworkError::NoError.
QString Qx::NetworkReplyError::text | ( | ) |
Returns the textual representation of the error.
QNetworkReply::NetworkError Qx::NetworkReplyError::type | ( | ) |
Returns the error's underlying type.
QUrl Qx::NetworkReplyError::url | ( | ) |
Returns the URL that the error pertains to.