10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
HTTPResponseException.h
1#ifndef TENDUKE_HTTP_HTTPRESPONSEEXCEPTION_H
2#define TENDUKE_HTTP_HTTPRESPONSEEXCEPTION_H
3
4#include "./HTTPException.h"
5
6namespace tenduke { namespace http {
7
14{
15public:
22 int httpStatusCode,
23 const std::string &message
24 ) : tenduke::http::HTTPException(message), statusCode(httpStatusCode)
25 {}
26
31 int getStatusCode() const {return statusCode;}
32
33private:
34 const int statusCode;
35};
36
37}}
38
39#endif // TENDUKE_HTTP_HTTPRESPONSEEXCEPTION_H
A generic HTTP-exception.
Definition HTTPException.h:16
This exception is thrown when HTTP-request fails because of HTTP-statuscode.
Definition HTTPResponseException.h:14
HTTPResponseException(int httpStatusCode, const std::string &message)
Constructs new instance.
Definition HTTPResponseException.h:21
int getStatusCode() const
Returns the HTTP status code.
Definition HTTPResponseException.h:31
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7