1#ifndef TENDUKE_SE_HTTPRESPONSETOAPIEXCEPTION_H
2#define TENDUKE_SE_HTTPRESPONSETOAPIEXCEPTION_H
4#include "http/HTTPResponseToException.h"
5#include "json/JSONParser.h"
9namespace tenduke {
namespace se {
namespace http {
37 const std::shared_ptr<const tenduke::json::JSONParser> parseJSON;
Utility service to throw an exception based on tenduke::http::HTTPResponse.
Definition HTTPResponseToException.h:18
A HTTP Response.
Definition HTTPResponse.h:15
10Duke Scale specific service for mapping HTTP responses to exceptions.
Definition HTTPResponseToAPIException.h:15
void from5xx(tenduke::http::HTTPResponse &response) const override
Throws appropriate exceptions, when HTTP status code is 5xx.
Definition HTTPResponseToAPIException.cpp:64
void from4xx(tenduke::http::HTTPResponse &response) const override
Throws appropriate exceptions, when HTTP status code is 4xx.
Definition HTTPResponseToAPIException.cpp:21
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7