10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::oauth::OAuthException Class Reference

#include <OAuthException.h>

Detailed Description

Generic OAuth-related exception.

Also a base-class for more specific exceptions.

Inheritance diagram for tenduke::oauth::OAuthException:
tenduke::TendukeException tenduke::oauth::OAuthServerError tenduke::oidc::OIDCException tenduke::oauth::OAuthInvalidGrant

Public Types

enum  Phase { NONE , AUTHORIZATION , TOKEN_REQUEST , REFRESH_REQUEST }
 Phase where this exception occurred.
 

Public Member Functions

 OAuthException (Phase phase, std::string error, const std::string &errorDescription)
 Constructs new instance.
 
Phase getPhase () const
 The phase where this exception occurred.
 
std::string getError () const
 Error code.
 
std::string getErrorDescription () const
 Error description.
 
- Public Member Functions inherited from tenduke::TendukeException
 TendukeException (const std::string &message)
 Constructs new instance.
 

Constructor & Destructor Documentation

◆ OAuthException()

tenduke::oauth::OAuthException::OAuthException ( Phase  phase,
std::string  error,
const std::string &  errorDescription 
)
inline

Constructs new instance.

Parameters
phase-
error-
errorDescription-

Member Function Documentation

◆ getError()

std::string tenduke::oauth::OAuthException::getError ( ) const
inline

Error code.

Returns
-

◆ getErrorDescription()

std::string tenduke::oauth::OAuthException::getErrorDescription ( ) const
inline

Error description.

Returns
-

◆ getPhase()

Phase tenduke::oauth::OAuthException::getPhase ( ) const
inline

The phase where this exception occurred.

Returns
-

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