The Error class is the base class that represents an error in the download manager API. More...
#include <error.h>
Public Types | |
enum | Type { Auth , DBus , Http , Network , Process , Hash } |
Public Member Functions | |
virtual | ~Error () |
Type | type () |
virtual QString | errorString () |
Protected Member Functions | |
Error (Type type, QObject *parent=0) | |
The Error class is the base class that represents an error in the download manager API.
The Error class represents an error in the download manager and can be of a number of types. The API is designed so that the client only needs to listen to a single error signal and that can later downcast the error class to get more detailed information.
Enumerator that represents the error type.
Returns the type of the error that was encountered.
|
virtual |
|
protected |
Creates a new error of the given type and with the given parent.
Definition at line 273 of file error.cpp.
References type().
Referenced by Lomiri::DownloadManager::AuthError::AuthError(), Lomiri::DownloadManager::DBusError::DBusError(), errorString(), Lomiri::DownloadManager::HashError::HashError(), Lomiri::DownloadManager::HttpError::HttpError(), Lomiri::DownloadManager::NetworkError::NetworkError(), Lomiri::DownloadManager::ProcessError::ProcessError(), and type().
|
virtual |
Returns a string representation of the error.
Reimplemented in Lomiri::DownloadManager::AuthError, Lomiri::DownloadManager::HashError, Lomiri::DownloadManager::HttpError, Lomiri::DownloadManager::NetworkError, and Lomiri::DownloadManager::ProcessError.
Definition at line 289 of file error.cpp.
References Error().
Error::Type Lomiri::DownloadManager::Error::type | ( | ) |