Ubuntu Download Manager  0.7.0
A session-wide downloading service
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator
Ubuntu::DownloadManager::HttpError Class Reference

The HttpError represents an error that occurred during the download request. More...

#include <error.h>

+ Inheritance diagram for Ubuntu::DownloadManager::HttpError:
+ Collaboration diagram for Ubuntu::DownloadManager::HttpError:

Public Member Functions

virtual ~HttpError ()
 
int code ()
 
QString phrase ()
 
QString errorString () override
 
- Public Member Functions inherited from Ubuntu::DownloadManager::Error
virtual ~Error ()
 
Type type ()
 

Protected Member Functions

 HttpError (Transfers::Errors::HttpErrorStruct err, QObject *parent)
 
- Protected Member Functions inherited from Ubuntu::DownloadManager::Error
 Error (Type type, QObject *parent=0)
 

Additional Inherited Members

- Public Types inherited from Ubuntu::DownloadManager::Error
enum  Type {
  Auth,
  DBus,
  Http,
  Network,
  Process
}
 

Detailed Description

The HttpError represents an error that occurred during the download request.

Since
0.3

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.

Definition at line 253 of file error.h.

Constructor & Destructor Documentation

Ubuntu::DownloadManager::HttpError::~HttpError ( )
virtual

Disposes of this error and frees any resources associated with it.

Definition at line 320 of file error.cpp.

Ubuntu::DownloadManager::HttpError::HttpError ( Transfers::Errors::HttpErrorStruct  err,
QObject parent 
)
protected

Creates a new error from the provided http error struct.

Definition at line 315 of file error.cpp.

Member Function Documentation

int Ubuntu::DownloadManager::HttpError::code ( )

/fn int code()

Returns the http error code, for example 404.

Definition at line 325 of file error.cpp.

QString Ubuntu::DownloadManager::HttpError::errorString ( )
overridevirtual

/fn QString errorString() override

Returns a string representation of the error.

Reimplemented from Ubuntu::DownloadManager::Error.

Definition at line 337 of file error.cpp.

QString Ubuntu::DownloadManager::HttpError::phrase ( )

/fn QString phrase()

Returns a human readable reason for the http error.

Definition at line 331 of file error.cpp.


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