com.xefer.rebel
Class ResourceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.servlet.ServletException
                    |
                    +--com.xefer.rebel.ResourceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MethodNotAllowedException

class ResourceException
extends ServletException

See Also:
Serialized Form

Field Summary
(package private)  Throwable rootCause
           
(package private)  int statusCode
           
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
ResourceException(int statusCode, String message)
           
ResourceException(int statusCode, String message, Throwable rootCause)
           
ResourceException(int statusCode, Throwable rootCause)
           
ResourceException(Throwable rootCause)
           
 
Method Summary
 String getMessage()
           
static String getMessage(Throwable cause)
           
 int getStatusCode()
           
 void report(HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.ServletException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

rootCause

Throwable rootCause

statusCode

int statusCode
Constructor Detail

ResourceException

public ResourceException(int statusCode,
                         String message)

ResourceException

public ResourceException(int statusCode,
                         String message,
                         Throwable rootCause)

ResourceException

public ResourceException(int statusCode,
                         Throwable rootCause)

ResourceException

public ResourceException(Throwable rootCause)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getMessage

public static String getMessage(Throwable cause)

getStatusCode

public int getStatusCode()

report

public void report(HttpServletResponse response)
            throws IOException