The HttpError represents an error that occurred during the download request. More...
#include <error.h>
Public Member Functions | |
virtual | ~HttpError () |
int | code () |
QString | phrase () |
QString | errorString () override |
![]() | |
virtual | ~Error () |
Type | type () |
Protected Member Functions | |
HttpError (Transfers::Errors::HttpErrorStruct err, QObject *parent) | |
![]() | |
Error (Type type, QObject *parent=0) | |
Additional Inherited Members | |
![]() | |
enum | Type { Auth , DBus , Http , Network , Process , Hash } |
The HttpError represents an error that occurred during the download request.
The HttpError represents an error that occurred during the download request and that is related to one of the known http 1.1 error codes.
|
virtual |
|
protected |
Creates a new error from the provided http error struct.
Definition at line 348 of file error.cpp.
References Lomiri::DownloadManager::Error::Error(), and Lomiri::DownloadManager::Error::Http.
Referenced by code(), errorString(), and phrase().
int Lomiri::DownloadManager::HttpError::code | ( | ) |
/fn int code()
Returns the http error code, for example 404.
Definition at line 358 of file error.cpp.
References HttpError().
|
overridevirtual |
/fn QString errorString() override
Returns a string representation of the error.
Reimplemented from Lomiri::DownloadManager::Error.
Definition at line 370 of file error.cpp.
References HttpError().
QString Lomiri::DownloadManager::HttpError::phrase | ( | ) |
/fn QString phrase()
Returns a human readable reason for the http error.
Definition at line 364 of file error.cpp.
References HttpError().