Class OAuthException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.forgerock.oauth.OAuthException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DataStoreException, InvalidOAuthClientException, InvalidOAuthRequestException, OAuthConfigException

public class OAuthException extends Exception
An exception that is thrown when an OAuth request has failed.
See Also:
  • Constructor Details

    • OAuthException

      public OAuthException(String message)
      Builds an OAuthException with a given message.
      Parameters:
      message - exception message
    • OAuthException

      public OAuthException(String message, Exception cause)
      Builds an OAuthException with a given message and cause.
      Parameters:
      message - Exception's message
      cause - Exception cause
  • Method Details

    • asPromise

      public <V> Promise<V,OAuthException> asPromise()
      Return this OAuthException as a Promise.
      Type Parameters:
      V - the result value type of the promise
      Returns:
      an Exception promise of type ResourceException