public class OAuth2AuthenticationException extends AuthenticationException
Authentication
errors.
There are a number of scenarios where an error may occur, for example:
Constructor and Description |
---|
OAuth2AuthenticationException(OAuth2Error error,
java.lang.String message)
Constructs an
OAuth2AuthenticationException using the provided parameters. |
OAuth2AuthenticationException(OAuth2Error error,
java.lang.String message,
java.lang.Throwable cause)
Constructs an
OAuth2AuthenticationException using the provided parameters. |
OAuth2AuthenticationException(OAuth2Error error,
java.lang.Throwable cause)
Constructs an
OAuth2AuthenticationException using the provided parameters. |
Modifier and Type | Method and Description |
---|---|
OAuth2Error |
getError()
Returns the
OAuth 2.0 Error . |
public OAuth2AuthenticationException(OAuth2Error error, java.lang.Throwable cause)
OAuth2AuthenticationException
using the provided parameters.error
- the OAuth 2.0 Error
cause
- the root causepublic OAuth2AuthenticationException(OAuth2Error error, java.lang.String message)
OAuth2AuthenticationException
using the provided parameters.error
- the OAuth 2.0 Error
message
- the detail messagepublic OAuth2AuthenticationException(OAuth2Error error, java.lang.String message, java.lang.Throwable cause)
OAuth2AuthenticationException
using the provided parameters.error
- the OAuth 2.0 Error
message
- the detail messagecause
- the root causepublic OAuth2Error getError()
OAuth 2.0 Error
.OAuth2Error