10Duke Scale C++ Client
Loading...
Searching...
No Matches
ServerError.h
1#ifndef TENDUKE_HTTP_SERVERERROR_H
2#define TENDUKE_HTTP_SERVERERROR_H
3
4#include "./HTTPResponseException.h"
5
6namespace tenduke { namespace http {
7
12{
13public:
20 int httpStatusCode,
21 const std::string &message
22 )
23 : tenduke::http::HTTPResponseException(httpStatusCode, message)
24 {}
25};
26
27}}
28
29#endif // TENDUKE_HTTP_SERVERERROR_H
This exception is thrown when HTTP-request fails because of HTTP-statuscode.
Definition HTTPResponseException.h:14
5xx-error, base class for 5xx-exceptions.
Definition ServerError.h:12
ServerError(int httpStatusCode, const std::string &message)
Constructs new instance.
Definition ServerError.h:19
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7