Class OAuth2AuthorizationException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ClientAuthorizationException

    public class OAuth2AuthorizationException
    extends java.lang.RuntimeException
    Base exception for OAuth 2.0 Authorization errors.
    Since:
    5.1
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OAuth2Error getError()
      Returns the OAuth 2.0 Error.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OAuth2AuthorizationException

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

        public OAuth2AuthorizationException​(OAuth2Error error,
                                            java.lang.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,
                                            java.lang.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,
                                            java.lang.String message,
                                            java.lang.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