10Duke Scale C++ Client
Loading...
Searching...
No Matches
ServerError.h
1#ifndef TENDUKE_SE_SERVERERROR_H
2#define TENDUKE_SE_SERVERERROR_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
32 explicit ServerError(const int code)
33 : APIException(code, "", "")
34 {}
35};
36
37}}}
38
39#endif //TENDUKE_SE_SERVERERROR_H
Base class for exceptions, which are mapped from HTTP-status-codes from 10Duke Scale backend.
Definition APIException.h:15
Base class for exceptions about HTTP status code 5xx.
Definition ServerError.h:12
ServerError(const int code, const std::string &error, const std::string &description)
Constructs new instance with HTTP-statuscode, error code and description.
Definition ServerError.h:20
ServerError(const int code)
Constructs new instance with only HTTP-status code.
Definition ServerError.h:32
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7