Qx v0.5.7
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::NetworkReplyError Class Reference

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 ()
 

Constructor & Destructor Documentation

◆ NetworkReplyError() [1/2]

Qx::NetworkReplyError::NetworkReplyError ( )

Constructs an invalid network reply error that is equivalent to QNetworkReply::NetworkError::NoError.

◆ NetworkReplyError() [2/2]

Qx::NetworkReplyError::NetworkReplyError ( QNetworkReply * reply,
QUrl url )

Constructs a network reply error from reply and url.

Member Function Documentation

◆ isValid()

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.

◆ text()

QString Qx::NetworkReplyError::text ( )

Returns the textual representation of the error.

◆ type()

QNetworkReply::NetworkError Qx::NetworkReplyError::type ( )

Returns the error's underlying type.

◆ url()

QUrl Qx::NetworkReplyError::url ( )

Returns the URL that the error pertains to.


The documentation for this class was generated from the following files: