org.apache.shindig.gadgets
Class GadgetException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.shindig.gadgets.GadgetException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractSpecFactory.SpecRetrievalFailedException, SpecParserException, TemplateParserException, UnsupportedFeatureException

public class GadgetException
extends Exception

Base class for all Gadget exceptions. The bulk of the code uses this class directly, differentiating between error conditions by the Code enumeration.

See Also:
Serialized Form

Nested Class Summary
static class GadgetException.Code
           
 
Constructor Summary
GadgetException(GadgetException.Code code)
           
GadgetException(GadgetException.Code code, int httpStatusCode)
           
GadgetException(GadgetException.Code code, String msg)
           
GadgetException(GadgetException.Code code, String msg, int httpStatusCode)
           
GadgetException(GadgetException.Code code, String msg, Throwable cause)
           
GadgetException(GadgetException.Code code, String msg, Throwable cause, int httpStatusCode)
           
GadgetException(GadgetException.Code code, Throwable cause)
           
GadgetException(GadgetException.Code code, Throwable cause, int httpStatusCode)
           
 
Method Summary
 GadgetException.Code getCode()
           
 int getHttpStatusCode()
           
 
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

GadgetException

public GadgetException(GadgetException.Code code,
                       int httpStatusCode)

GadgetException

public GadgetException(GadgetException.Code code,
                       Throwable cause,
                       int httpStatusCode)

GadgetException

public GadgetException(GadgetException.Code code,
                       String msg,
                       Throwable cause,
                       int httpStatusCode)

GadgetException

public GadgetException(GadgetException.Code code,
                       String msg,
                       int httpStatusCode)

GadgetException

public GadgetException(GadgetException.Code code)

GadgetException

public GadgetException(GadgetException.Code code,
                       Throwable cause)

GadgetException

public GadgetException(GadgetException.Code code,
                       String msg,
                       Throwable cause)

GadgetException

public GadgetException(GadgetException.Code code,
                       String msg)
Method Detail

getCode

public GadgetException.Code getCode()

getHttpStatusCode

public int getHttpStatusCode()


Copyright © 2007-2012. All Rights Reserved.