The AuthError represents an authentication error that occurred during the request of the download. More...
#include <error.h>
Public Types | |
enum | Type { Server , Proxy } |
![]() | |
enum | Type { Auth , DBus , Http , Network , Process , Hash } |
Public Member Functions | |
virtual | ~AuthError () |
Type | type () |
QString | phrase () |
QString | errorString () override |
![]() | |
virtual | ~Error () |
Type | type () |
Protected Member Functions | |
AuthError (Transfers::Errors::AuthErrorStruct err, QObject *parent) | |
![]() | |
Error (Type type, QObject *parent=0) | |
The AuthError represents an authentication error that occurred during the request of the download.
The AuthError can occur due to two different reasons, either the download required a server side authentication or the download was performed via a proxy that requires authentication and was not provided.
|
virtual |
|
protected |
Creates a new error from the provided authentication error struct.
Definition at line 321 of file error.cpp.
References Lomiri::DownloadManager::Error::Auth, and Lomiri::DownloadManager::Error::Error().
Referenced by errorString(), phrase(), and type().
|
overridevirtual |
/fn QString errorString() override
Returns a string representation of the error.
Reimplemented from Lomiri::DownloadManager::Error.
Definition at line 343 of file error.cpp.
References AuthError().
QString Lomiri::DownloadManager::AuthError::phrase | ( | ) |
/fn QString phrase()
Returns a human readable explanation for the authentication error.
Definition at line 337 of file error.cpp.
References AuthError().
AuthError::Type Lomiri::DownloadManager::AuthError::type | ( | ) |
Returns the type of authentication error.
Definition at line 331 of file error.cpp.
References AuthError().