10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::http::HTTPResponseException Class Reference

#include <HTTPResponseException.h>

Detailed Description

This exception is thrown when HTTP-request fails because of HTTP-statuscode.

This exception is usually thrown by users of tenduke::http::HTTPClient, the client itself does not care about the HTTP-status code.

Inheritance diagram for tenduke::http::HTTPResponseException:
tenduke::http::HTTPException tenduke::net::NetworkingException tenduke::TendukeException tenduke::http::ClientError tenduke::http::ServerError tenduke::se::http::APIException tenduke::http::BadRequest tenduke::http::Forbidden tenduke::http::NotFound tenduke::http::Unauthorized tenduke::se::http::ClientError tenduke::se::http::ServerError tenduke::se::http::BadRequest tenduke::se::http::Conflict tenduke::se::http::Forbidden tenduke::se::http::NotFound tenduke::se::http::TooManyRequests tenduke::se::http::Unauthorized

Public Member Functions

 HTTPResponseException (int httpStatusCode, const std::string &message)
 Constructs new instance.
 
int getStatusCode () const
 Returns the HTTP status code.
 
- Public Member Functions inherited from tenduke::http::HTTPException
 HTTPException (const std::string &message)
 Constructs new instance.
 
- Public Member Functions inherited from tenduke::net::NetworkingException
 NetworkingException (const std::string &message)
 Constructs new instance.
 
- Public Member Functions inherited from tenduke::TendukeException
 TendukeException (const std::string &message)
 Constructs new instance.
 

Constructor & Destructor Documentation

◆ HTTPResponseException()

tenduke::http::HTTPResponseException::HTTPResponseException ( int  httpStatusCode,
const std::string &  message 
)
inline

Constructs new instance.

Parameters
httpStatusCode-
message-

Member Function Documentation

◆ getStatusCode()

int tenduke::http::HTTPResponseException::getStatusCode ( ) const
inline

Returns the HTTP status code.

Returns
-

The documentation for this class was generated from the following file: