10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
HTTPResponseException.h
1
#ifndef TENDUKE_HTTP_HTTPRESPONSEEXCEPTION_H
2
#define TENDUKE_HTTP_HTTPRESPONSEEXCEPTION_H
3
4
#include "./HTTPException.h"
5
6
namespace
tenduke
{
namespace
http
{
7
13
class
HTTPResponseException
:
public
tenduke::http::HTTPException
14
{
15
public
:
21
HTTPResponseException
(
22
int
httpStatusCode,
23
const
std::string &message
24
) :
tenduke
::
http
::
HTTPException
(message), statusCode(httpStatusCode)
25
{}
26
31
int
getStatusCode
()
const
{
return
statusCode;}
32
33
private
:
34
const
int
statusCode;
35
};
36
37
}}
38
39
#endif
// TENDUKE_HTTP_HTTPRESPONSEEXCEPTION_H
tenduke::http::HTTPException
A generic HTTP-exception.
Definition
HTTPException.h:16
tenduke::http::HTTPException::HTTPException
HTTPException(const std::string &message)
Constructs new instance.
Definition
HTTPException.h:22
tenduke::http::HTTPResponseException::HTTPResponseException
HTTPResponseException(int httpStatusCode, const std::string &message)
Constructs new instance.
Definition
HTTPResponseException.h:21
tenduke::http::HTTPResponseException::getStatusCode
int getStatusCode() const
Returns the HTTP status code.
Definition
HTTPResponseException.h:31
tenduke::http
HTTP-related services.
Definition
BadRequest.h:6
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
http
HTTPResponseException.h
Generated by
1.17.0