10Duke Scale C++ Client
|
#include <ClientError.h>
Base class for exceptions when 10Duke Scale backend responds with HTTP 4xx.
Public Member Functions | |
ClientError (const int code, const std::string &error, const std::string &description) | |
Constructs new instance with HTTP-statuscode, error code and description. | |
ClientError (const int code, const std::string &description) | |
Constructs new instance with HTTP-statuscode and description. | |
ClientError (const int code) | |
Constructs new instance with only HTTP-status code. | |
Public Member Functions inherited from tenduke::se::http::APIException | |
APIException (const int code, std::string error, const std::string &description) | |
Constructs new instance with HTTP status code, error code and description. | |
APIException (const int code, const std::string &description) | |
Constructs new instance with HTTP status code and description. | |
APIException (const int code) | |
Constructs new instance just with HTTP status code. | |
std::string | getError () const |
Returns the error code. | |
std::string | getDescription () const |
Returns the description. | |
Public Member Functions inherited from tenduke::http::HTTPResponseException | |
HTTPResponseException (int httpStatusCode, const std::string &message) | |
Constructs new instance. | |
int | getStatusCode () const |
Returns the HTTP status code. | |
Public Member Functions inherited from tenduke::http::HTTPException | |
HTTPException (const std::string &message) | |
Constructs new instance. | |
Public Member Functions inherited from tenduke::net::NetworkingException | |
NetworkingException (const std::string &message) | |
Constructs new instance. | |
Public Member Functions inherited from tenduke::TendukeException | |
TendukeException (const std::string &message) | |
Constructs new instance. | |
|
inline |
Constructs new instance with HTTP-statuscode, error code and description.
code | HTTP-status code |
error | - |
description | - |
|
inline |
Constructs new instance with HTTP-statuscode and description.
code | - |
description | - |
Constructs new instance with only HTTP-status code.
code | - |