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
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
Base class for exceptions, which are mapped from HTTP-status-codes from 10Duke Scale backend.
Definition APIException.h:15
APIException(const int code, std::string error, const std::string &description)
Constructs new instance with HTTP status code, error code and description.
Definition APIException.h:23
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
10Duke Scale C++ Client -specific HTTP implementation.
Definition APIException.h:9
Classes, functions and globals of 10Duke Scale C++ Client.
Definition AbstractClientFactory.h:16
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16