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

#include <ServerError.h>

Detailed Description

Base class for exceptions about HTTP status code 5xx.

Inheritance diagram for tenduke::se::http::ServerError:
tenduke::se::http::APIException tenduke::http::HTTPResponseException tenduke::http::HTTPException tenduke::net::NetworkingException tenduke::TendukeException

Public Member Functions

 ServerError (const int code, const std::string &error, const std::string &description)
 Constructs new instance with HTTP-statuscode, error code and description.
 
 ServerError (const int code)
 Constructs new instance with only HTTP-status code.
 
- Public Member Functions inherited from tenduke::se::http::APIException
 APIException (const int code, std::string error, const std::string &description)
 Constructs new instance with HTTP status code, error code and description.
 
 APIException (const int code, const std::string &description)
 Constructs new instance with HTTP status code and description.
 
 APIException (const int code)
 Constructs new instance just with HTTP status code.
 
std::string getError () const
 Returns the error code.
 
std::string getDescription () const
 Returns the description.
 
- Public Member Functions inherited from tenduke::http::HTTPResponseException
 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

◆ ServerError() [1/2]

tenduke::se::http::ServerError::ServerError ( const int  code,
const std::string &  error,
const std::string &  description 
)
inline

Constructs new instance with HTTP-statuscode, error code and description.

Parameters
codeHTTP-status code
error-
description-

◆ ServerError() [2/2]

tenduke::se::http::ServerError::ServerError ( const int  code)
inlineexplicit

Constructs new instance with only HTTP-status code.

Parameters
code-

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