org.directwebremoting.servlet
Class ExceptionHandler
java.lang.Object
org.directwebremoting.servlet.ExceptionHandler
- All Implemented Interfaces:
- Handler
public class ExceptionHandler
- extends java.lang.Object
- implements Handler
Handles an exception occuring during the request disptaching.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
Method Summary |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle a URL request that has been mapped to this Handler |
void |
setException(java.lang.Exception cause)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionHandler
public ExceptionHandler()
handle
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Description copied from interface:
Handler
- Handle a URL request that has been mapped to this Handler
- Specified by:
handle
in interface Handler
- Parameters:
request
- The HTTP request dataresponse
- Where we write the HTTP response data
- Throws:
java.io.IOException
- If the write process fails
setException
public void setException(java.lang.Exception cause)
- Parameters:
cause
- The cause of the failure