Class OAuth2AuthorizationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.security.oauth2.core.OAuth2AuthorizationException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ClientAuthorizationException
public class OAuth2AuthorizationException extends java.lang.RuntimeExceptionBase exception for OAuth 2.0 Authorization errors.- Since:
- 5.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthorizationException(OAuth2Error error)Constructs anOAuth2AuthorizationExceptionusing the provided parameters.OAuth2AuthorizationException(OAuth2Error error, java.lang.String message)Constructs anOAuth2AuthorizationExceptionusing the provided parameters.OAuth2AuthorizationException(OAuth2Error error, java.lang.String message, java.lang.Throwable cause)Constructs anOAuth2AuthorizationExceptionusing the provided parameters.OAuth2AuthorizationException(OAuth2Error error, java.lang.Throwable cause)Constructs anOAuth2AuthorizationExceptionusing the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2ErrorgetError()Returns theOAuth 2.0 Error.
-
-
-
Constructor Detail
-
OAuth2AuthorizationException
public OAuth2AuthorizationException(OAuth2Error error)
Constructs anOAuth2AuthorizationExceptionusing the provided parameters.- Parameters:
error- theOAuth 2.0 Error
-
OAuth2AuthorizationException
public OAuth2AuthorizationException(OAuth2Error error, java.lang.String message)
Constructs anOAuth2AuthorizationExceptionusing the provided parameters.- Parameters:
error- theOAuth 2.0 Errormessage- the exception message- Since:
- 5.3
-
OAuth2AuthorizationException
public OAuth2AuthorizationException(OAuth2Error error, java.lang.Throwable cause)
Constructs anOAuth2AuthorizationExceptionusing the provided parameters.- Parameters:
error- theOAuth 2.0 Errorcause- the root cause
-
OAuth2AuthorizationException
public OAuth2AuthorizationException(OAuth2Error error, java.lang.String message, java.lang.Throwable cause)
Constructs anOAuth2AuthorizationExceptionusing the provided parameters.- Parameters:
error- theOAuth 2.0 Errormessage- the exception messagecause- the root cause- Since:
- 5.3
-
-
Method Detail
-
getError
public OAuth2Error getError()
Returns theOAuth 2.0 Error.- Returns:
- the
OAuth2Error
-
-