The NetworkError represents an error that occurred during the download request. More...
#include <error.h>
Public Member Functions | |
virtual | ~NetworkError () |
ErrorCode | code () |
QString | phrase () |
QString | errorString () override |
![]() | |
virtual | ~Error () |
Type | type () |
Protected Member Functions | |
NetworkError (Transfers::Errors::NetworkErrorStruct err, QObject *parent) | |
![]() | |
Error (Type type, QObject *parent=0) | |
The NetworkError represents an error that occurred during the download request.
Enumerator that indicates all possible error conditions found during the processing of the request.
|
virtual |
|
protected |
Creates a new error from the provided http error struct.
Definition at line 375 of file error.cpp.
References Lomiri::DownloadManager::Error::Error(), and Lomiri::DownloadManager::Error::Network.
Referenced by code(), errorString(), and phrase().
NetworkError::ErrorCode Lomiri::DownloadManager::NetworkError::code | ( | ) |
Returns the code that represents the occurred error.
Definition at line 386 of file error.cpp.
References NetworkError().
|
overridevirtual |
/fn QString errorString() override
Returns a string representation of the error.
Reimplemented from Lomiri::DownloadManager::Error.
Definition at line 398 of file error.cpp.
References NetworkError().
QString Lomiri::DownloadManager::NetworkError::phrase | ( | ) |
/fn QString phrase()
Returns a human readable explanation of the occurred error.
Definition at line 392 of file error.cpp.
References NetworkError().