public class OAuth2RequestException extends Exception
| Constructor and Description |
|---|
OAuth2RequestException(OAuth2Error error,
String errorText,
Throwable cause)
Create an exception and record information about the exception to be returned to the gadget.
|
OAuth2RequestException(OAuth2Error error,
String errorText,
Throwable cause,
String errorUri,
String errorDescription)
Create an exception and record information about the exception to be returned to the gadget.
|
| Modifier and Type | Method and Description |
|---|---|
OAuth2Error |
getError()
Get the error code
|
String |
getErrorDescription()
Returns the more meaningful description of the error
|
String |
getErrorText()
Get a description of the exception
|
String |
getErrorUri()
Returns the errorUri, if it was provided by the OAuth2 service provider
|
String |
getMessage() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic OAuth2RequestException(OAuth2Error error, String errorText, Throwable cause)
error - OAuth2Error for this errorerrorText - String to help elaborate on the cause of this errorcause - Throwable optional root cause of the errorpublic OAuth2RequestException(OAuth2Error error, String errorText, Throwable cause, String errorUri, String errorDescription)
error - OAuth2Error for this errorerrorText - String to help elaborate on the cause of this errorcause - Throwable optional root cause of the errorerrorUri - optional errorUri from the OAuth2 specerrorDescription - optionally provide more details about the errorpublic OAuth2Error getError()
OAuth2Error, never nullpublic String getErrorText()
public String getMessage()
getMessage in class Throwablepublic String getErrorUri()
nullpublic String getErrorDescription()
nullCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.