Restlet Framework 2.2.2
OSGi Environments

org.restlet.ext.oauth
Class OAuthException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
OAuthException(OAuthError error, String description, String errorUri)
           
 
Method Summary
 JSONObject createErrorDocument()
           
 OAuthError getError()
           
 String getErrorDescription()
           
 String getErrorURI()
           
static OAuthException toOAuthException(Form params)
           
static OAuthException toOAuthException(JSONObject result)
           
static OAuthException toOAuthException(Throwable t)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuthException

public OAuthException(OAuthError error,
                      String description,
                      String errorUri)
Method Detail

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

Restlet Framework 2.2.2
OSGi Environments

Copyright © 2005-2014 Restlet.