Package org.forgerock.oauth
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
An exception that is thrown when an OAuth request has failed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOAuthException(String message) Builds anOAuthExceptionwith a given message.OAuthException(String message, Exception cause) Builds anOAuthExceptionwith a given message and cause. -
Method Summary
Modifier and TypeMethodDescription<V> Promise<V,OAuthException> Return this OAuthException as a Promise.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OAuthException
Builds anOAuthExceptionwith a given message.- Parameters:
message- exception message
-
OAuthException
Builds anOAuthExceptionwith a given message and cause.- Parameters:
message- Exception's messagecause- Exception cause
-
-
Method Details
-
asPromise
Return this OAuthException as a Promise.- Type Parameters:
V- the result value type of the promise- Returns:
- an Exception promise of type ResourceException
-