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
public class OAuthException extends Exception
An exception that is thrown when an OAuth request has failed.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description OAuthException(String message)Builds anOAuthExceptionwith a given message.OAuthException(String message, Exception cause)Builds anOAuthExceptionwith a given message and cause. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> Promise<V,OAuthException>asPromise()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 Detail
- 
OAuthException
public OAuthException(String message)
Builds anOAuthExceptionwith a given message.- Parameters:
 message- exception message
 
- 
OAuthException
public OAuthException(String message, Exception cause)
Builds anOAuthExceptionwith a given message and cause.- Parameters:
 message- Exception's messagecause- Exception cause
 
 - 
 
- 
Method Detail
- 
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
 
 
 - 
 
 -