Class OAuth2AuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.oauth2.core.OAuth2AuthorizationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientAuthorizationException
Base exception for OAuth 2.0 Authorization errors.
- Since:
- 5.1
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs anOAuth2AuthorizationException
using the provided parameters.OAuth2AuthorizationException
(OAuth2Error error, String message) Constructs anOAuth2AuthorizationException
using the provided parameters.OAuth2AuthorizationException
(OAuth2Error error, String message, Throwable cause) Constructs anOAuth2AuthorizationException
using the provided parameters.OAuth2AuthorizationException
(OAuth2Error error, Throwable cause) Constructs anOAuth2AuthorizationException
using the provided parameters. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OAuth2AuthorizationException
Constructs anOAuth2AuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
-
OAuth2AuthorizationException
Constructs anOAuth2AuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
message
- the exception message- Since:
- 5.3
-
OAuth2AuthorizationException
Constructs anOAuth2AuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
cause
- the root cause
-
OAuth2AuthorizationException
Constructs anOAuth2AuthorizationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
message
- the exception messagecause
- the root cause- Since:
- 5.3
-
-
Method Details
-
getError
Returns theOAuth 2.0 Error
.- Returns:
- the
OAuth2Error
-