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

public class OAuth2AuthorizationException extends RuntimeException
Base exception for OAuth 2.0 Authorization errors.
Since:
5.1
See Also:
  • Constructor Details

    • OAuth2AuthorizationException

      public OAuth2AuthorizationException(OAuth2Error error)
      Constructs an OAuth2AuthorizationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
    • OAuth2AuthorizationException

      public OAuth2AuthorizationException(OAuth2Error error, String message)
      Constructs an OAuth2AuthorizationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      message - the exception message
      Since:
      5.3
    • OAuth2AuthorizationException

      public OAuth2AuthorizationException(OAuth2Error error, Throwable cause)
      Constructs an OAuth2AuthorizationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      cause - the root cause
    • OAuth2AuthorizationException

      public OAuth2AuthorizationException(OAuth2Error error, String message, Throwable cause)
      Constructs an OAuth2AuthorizationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      message - the exception message
      cause - the root cause
      Since:
      5.3
  • Method Details