1#ifndef TENDUKE_SE_APIEXCEPTION_H
2#define TENDUKE_SE_APIEXCEPTION_H
4#include "http/HTTPResponseException.h"
9namespace tenduke {
namespace se {
namespace http {
26 ,
const std::string &description
28 , error(std::move(error))
38 ,
const std::string &description
66 return std::runtime_error::what();
70 const std::string error;
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
Base class for exceptions, which are mapped from HTTP-status-codes from 10Duke Scale backend.
Definition APIException.h:15
APIException(const int code, const std::string &description)
Constructs new instance with HTTP status code and description.
Definition APIException.h:36
APIException(const int code)
Constructs new instance just with HTTP status code.
Definition APIException.h:46
std::string getError() const
Returns the error code.
Definition APIException.h:53
APIException(const int code, std::string error, const std::string &description)
Constructs new instance with HTTP status code, error code and description.
Definition APIException.h:23
std::string getDescription() const
Returns the description.
Definition APIException.h:63
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7