|
qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
|
The HttpException class is the base exception that is raised on all errors of the HTTP protocol. More...
#include <httpexception.h>


Public Member Functions | |
| HttpException (QNetworkReply::NetworkError code, const QByteArray &erroString={}) | |
| HttpException constructs the exception with an http error code and an error description. | |
| const char * | what () const noexcept override |
| what Returns the text description of the error. | |
| void | raise () const override |
| raise Raises the exception. | |
| QException * | clone () const override |
| clone Creates a copy of the exception. | |
| QNetworkReply::NetworkError | code () const |
| code Returns the network error code. | |
The HttpException class is the base exception that is raised on all errors of the HTTP protocol.
Definition at line 20 of file httpexception.h.
| qTbot::HttpException::HttpException | ( | QNetworkReply::NetworkError | code, |
| const QByteArray & | erroString = {} ) |
HttpException constructs the exception with an http error code and an error description.
| code | This is the network error code. |
| erroString | This is the text description of the error. |
Definition at line 12 of file httpexception.cpp.


|
override |
clone Creates a copy of the exception.
Definition at line 34 of file httpexception.cpp.

| QNetworkReply::NetworkError qTbot::HttpException::code | ( | ) | const |
code Returns the network error code.
Definition at line 39 of file httpexception.cpp.

|
override |
raise Raises the exception.
Definition at line 30 of file httpexception.cpp.
|
overridenoexcept |
what Returns the text description of the error.
Definition at line 26 of file httpexception.cpp.