1#ifndef TENDUKE_OAUTH_HTTPRESPONSETOOAUTHEXCEPTION_H
2#define TENDUKE_OAUTH_HTTPRESPONSETOOAUTHEXCEPTION_H
4#include "http/HTTPResponseToException.h"
5#include "json/JSONParser.h"
35 void from4xx(http::HTTPResponse &response)
const override;
38 const std::shared_ptr<const tenduke::json::JSONParser> parseJSON;
HTTPResponseToOAuthException(const std::shared_ptr< const tenduke::json::JSONParser > &parseJson)
Constructs new instance.
Definition HTTPResponseToOAuthException.cpp:46
Utility service to throw an exception based on tenduke::http::HTTPResponse.
Definition HTTPResponseToException.h:18
void from4xx(http::HTTPResponse &response) const override
OAuth-specific handling for HTTP 4xx-errors.
Definition HTTPResponseToOAuthException.cpp:19
HTTPResponseToOAuthException(const std::shared_ptr< const tenduke::json::JSONParser > &parseJson)
Constructs new instance.
Definition HTTPResponseToOAuthException.cpp:46
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4