org.restlet.ext.oauth
Class OAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.restlet.ext.oauth.OAuthException
- All Implemented Interfaces:
- Serializable
public class OAuthException
- extends Exception
Exception that represents OAuth 2.0 (RFC6749) Errors.
- Author:
- Shotaro Uchida
- See Also:
- The OAuth 2.0 Authorization
Framework (RFC6749),
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
OAuthException
public OAuthException(OAuthError error,
String description,
String errorUri)
toOAuthException
public static OAuthException toOAuthException(Throwable t)
toOAuthException
public static OAuthException toOAuthException(JSONObject result)
throws JSONException
- Throws:
JSONException
toOAuthException
public static OAuthException toOAuthException(Form params)
getError
public OAuthError getError()
getErrorDescription
public String getErrorDescription()
getErrorURI
public String getErrorURI()
createErrorDocument
public JSONObject createErrorDocument()
throws JSONException
- Throws:
JSONException
Copyright © 2005-2014 Restlet.