org.apache.shindig.gadgets.oauth
Class OAuthRequestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.shindig.gadgets.oauth.OAuthRequestException
All Implemented Interfaces:
Serializable

public class OAuthRequestException
extends Exception

Thrown by OAuth request routines.

Since:
2.0.0
See Also:
Serialized Form

Constructor Summary
OAuthRequestException(OAuthError error)
          Create an exception and record information about the exception to be returned to the gadget.
OAuthRequestException(OAuthError error, String errorText)
          Create an exception and record information about the exception to be returned to the gadget.
OAuthRequestException(OAuthError error, String errorText, Throwable cause)
          Create an exception and record information about the exception to be returned to the gadget.
OAuthRequestException(String message)
          Create an exception and record information about the exception to be returned to the gadget.
OAuthRequestException(String error, String errorText)
          Create an exception and record information about the exception to be returned to the gadget.
OAuthRequestException(String error, String errorText, Throwable cause)
          Create an exception and record information about the exception to be returned to the gadget.
OAuthRequestException(String message, Throwable cause)
          Create an exception and record information about the exception to be returned to the gadget.
 
Method Summary
 String getError()
          Get the error code
 String getErrorText()
          Get a meaningful description of the exception
 String getMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuthRequestException

public OAuthRequestException(OAuthError error)
Create an exception and record information about the exception to be returned to the gadget.

Parameters:
error -

OAuthRequestException

public OAuthRequestException(OAuthError error,
                             String errorText)
Create an exception and record information about the exception to be returned to the gadget.

Parameters:
error -
errorText -

OAuthRequestException

public OAuthRequestException(OAuthError error,
                             String errorText,
                             Throwable cause)
Create an exception and record information about the exception to be returned to the gadget.

Parameters:
error -
errorText -
cause -

OAuthRequestException

public OAuthRequestException(String error,
                             String errorText)
Create an exception and record information about the exception to be returned to the gadget.

Parameters:
error -
errorText -

OAuthRequestException

public OAuthRequestException(String error,
                             String errorText,
                             Throwable cause)
Create an exception and record information about the exception to be returned to the gadget.

Parameters:
error -
errorText -
cause -

OAuthRequestException

public OAuthRequestException(String message)
Create an exception and record information about the exception to be returned to the gadget.

Parameters:
message -

OAuthRequestException

public OAuthRequestException(String message,
                             Throwable cause)
Create an exception and record information about the exception to be returned to the gadget.

Parameters:
message -
cause -
Method Detail

getError

public String getError()
Get the error code

Returns:

getErrorText

public String getErrorText()
Get a meaningful description of the exception

Returns:

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2007-2012. All Rights Reserved.