org.benow.web
Class WebException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.benow.util.NestableException
              extended by org.benow.web.WebException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RedirectException, TerseWebException

public class WebException
extends org.benow.util.NestableException

An exception occuring within the web api.

See Also:
Serialized Form

Constructor Summary
WebException(int code, java.lang.String msg)
           
WebException(java.lang.String message)
           
WebException(java.lang.String message, java.lang.Throwable nested)
           
 
Method Summary
 int getCode()
           
static java.lang.String getMessageAsHTML(java.lang.Throwable exception)
           
static java.lang.String getStackAsHTML(java.lang.Throwable exception)
           
 
Methods inherited from class org.benow.util.NestableException
printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebException

public WebException(java.lang.String message)

WebException

public WebException(java.lang.String message,
                    java.lang.Throwable nested)

WebException

public WebException(int code,
                    java.lang.String msg)
Method Detail

getCode

public int getCode()

getStackAsHTML

public static java.lang.String getStackAsHTML(java.lang.Throwable exception)

getMessageAsHTML

public static java.lang.String getMessageAsHTML(java.lang.Throwable exception)