10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
OAuthException.h
1
#ifndef TENDUKE_OAUTH_OAUTHEXCEPTION_H
2
#define TENDUKE_OAUTH_OAUTHEXCEPTION_H
3
4
#include "TendukeException.h"
5
6
#include <string>
7
8
namespace
tenduke
{
namespace
oauth
{
9
10
14
class
OAuthException
:
public
tenduke::TendukeException
15
{
16
public
:
20
enum
Phase
21
{
22
NONE,
23
AUTHORIZATION,
24
TOKEN_REQUEST,
25
REFRESH_REQUEST
26
};
27
34
OAuthException
(
35
Phase
phase,
36
std::string error,
37
const
std::string &errorDescription
38
) :
tenduke
::
TendukeException
(errorDescription), phase(phase), error(std::move(error))
39
{}
40
45
Phase
getPhase
()
const
{
return
phase;}
50
std::string
getError
()
const
{
return
error;}
55
std::string
getErrorDescription
()
const
{
return
what();}
56
57
private
:
58
const
Phase
phase;
59
const
std::string error;
60
};
61
62
63
}}
64
65
#endif
// TENDUKE_OAUTH_OAUTHEXCEPTION_H
OAuthException::OAuthException
OAuthException(Phase phase, std::string error, const std::string &errorDescription)
Constructs new instance.
Definition
OAuthException.h:34
tenduke::TendukeException
Base class for exceptions thrown by 10Duke C++ clients.
Definition
TendukeException.h:13
tenduke::TendukeException::TendukeException
TendukeException(const std::string &message)
Constructs new instance.
Definition
TendukeException.h:19
tenduke::oauth::OAuthException::getErrorDescription
std::string getErrorDescription() const
Error description.
Definition
OAuthException.h:55
tenduke::oauth::OAuthException::getError
std::string getError() const
Error code.
Definition
OAuthException.h:50
tenduke::oauth::OAuthException::getPhase
Phase getPhase() const
The phase where this exception occurred.
Definition
OAuthException.h:45
tenduke::oauth::OAuthException::Phase
Phase
Phase where this exception occurred.
Definition
OAuthException.h:21
tenduke::oauth::OAuthException::OAuthException
OAuthException(Phase phase, std::string error, const std::string &errorDescription)
Constructs new instance.
Definition
OAuthException.h:34
tenduke::oauth
OAuth services.
Definition
AccessTokenRequestAuthenticator.h:8
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
core
src
oauth
OAuthException.h
Generated by
1.17.0