public final class OAuth2ErrorException extends Exception
Constructor and Description |
---|
OAuth2ErrorException(OAuth2Error error)
Creates a new exception with the provided OAuth 2.0 error.
|
OAuth2ErrorException(OAuth2Error error,
String message)
Creates a new exception with the provided OAuth 2.0 error.
|
OAuth2ErrorException(OAuth2Error error,
String message,
Throwable cause)
Creates a new exception with the provided OAuth 2.0 error.
|
OAuth2ErrorException(OAuth2Error error,
Throwable cause)
Creates a new exception with the provided OAuth 2.0 error.
|
OAuth2ErrorException(String error,
String errorDescription)
Creates a new exception with the provided OAuth 2.0 error code and
optional description.
|
OAuth2ErrorException(String error,
String errorDescription,
Throwable cause)
Creates a new exception with the provided OAuth 2.0 error code, optional
description, and cause.
|
Modifier and Type | Method and Description |
---|---|
OAuth2Error |
getOAuth2Error()
Returns the OAuth 2.0 error represented by this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OAuth2ErrorException(OAuth2Error error)
error
- The OAuth 2.0 error.public OAuth2ErrorException(OAuth2Error error, String message)
error
- The OAuth 2.0 error.message
- The message.public OAuth2ErrorException(OAuth2Error error, String message, Throwable cause)
error
- The OAuth 2.0 error.message
- The message.cause
- The cause.public OAuth2ErrorException(OAuth2Error error, Throwable cause)
error
- The OAuth 2.0 error.cause
- The cause.public OAuth2ErrorException(String error, String errorDescription)
error
- The error code specifying the cause of the failure.errorDescription
- The human-readable ASCII text providing additional
information, or null
.NullPointerException
- If error
was null
.public OAuth2ErrorException(String error, String errorDescription, Throwable cause)
error
- The error code specifying the cause of the failure.errorDescription
- The human-readable ASCII text providing additional
information, or null
.cause
- The cause.NullPointerException
- If error
was null
.public OAuth2Error getOAuth2Error()
Copyright © 2014 ForgeRock AS. All rights reserved.