10Duke Scale C++ Client
Loading...
Searching...
No Matches
ClientError.h
1#ifndef TENDUKE_SE_CLIENTERROR_H
2#define TENDUKE_SE_CLIENTERROR_H
3
4#include "./APIException.h"
5
6namespace tenduke { namespace se { namespace http {
7
12{
13public:
21 const int code,
22 const std::string &error,
23 const std::string &description
24 )
25 : APIException(code, error, description)
26 {}
27
34 const int code,
35 const std::string &description
36 )
37 : APIException(code, description)
38 {}
39
44 explicit ClientError(const int code)
45 : APIException(code, "", "")
46 {}
47};
48
49}}}
50
51#endif //TENDUKE_SE_CLIENTERROR_H
Base class for exceptions, which are mapped from HTTP-status-codes from 10Duke Scale backend.
Definition APIException.h:15
Base class for exceptions when 10Duke Scale backend responds with HTTP 4xx.
Definition ClientError.h:12
ClientError(const int code)
Constructs new instance with only HTTP-status code.
Definition ClientError.h:44
ClientError(const int code, const std::string &description)
Constructs new instance with HTTP-statuscode and description.
Definition ClientError.h:33
ClientError(const int code, const std::string &error, const std::string &description)
Constructs new instance with HTTP-statuscode, error code and description.
Definition ClientError.h:20
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7