qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
qTbot::HttpException Class Reference

The HttpException class is the base exception that is raised on all errors of the HTTP protocol. More...

#include <httpexception.h>

Inheritance diagram for qTbot::HttpException:
Inheritance graph
Collaboration diagram for qTbot::HttpException:
Collaboration graph

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ HttpException()

qTbot::HttpException::HttpException ( QNetworkReply::NetworkError code,
const QByteArray & erroString = {} )

HttpException constructs the exception with an http error code and an error description.

Parameters
codeThis is the network error code.
erroStringThis is the text description of the error.

Definition at line 12 of file httpexception.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ clone()

QException * qTbot::HttpException::clone ( ) const
override

clone Creates a copy of the exception.

Returns
a pointer to the new exception instance.

Definition at line 34 of file httpexception.cpp.

Here is the call graph for this function:

◆ code()

QNetworkReply::NetworkError qTbot::HttpException::code ( ) const

code Returns the network error code.

Returns
the network error code.

Definition at line 39 of file httpexception.cpp.

Here is the caller graph for this function:

◆ raise()

void qTbot::HttpException::raise ( ) const
override

raise Raises the exception.

Definition at line 30 of file httpexception.cpp.

◆ what()

const char * qTbot::HttpException::what ( ) const
overridenoexcept

what Returns the text description of the error.

Returns
error description as a c string.

Definition at line 26 of file httpexception.cpp.


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