: Class DefaultExceptionHandler

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mortbay.HTTP.Handler
Class DefaultExceptionHandler

    java.lang.Object
      |
      +--com.mortbay.HTTP.Handler.DefaultExceptionHandler

public class DefaultExceptionHandler
extends java.lang.Object
implements ExceptionHandler

Default Exception handler This specialization of exception handler adds the exception and its stack trace to the reply for view by the user. It is intended as the last resort exception handler

Constructor Summary
`DefaultExceptionHandler()`

Method Summary
`void` | `handle(HttpRequest request, HttpResponse response, java.lang.Exception exception)` Base handler of handler Exceptions.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultExceptionHandler

    public DefaultExceptionHandler()

Method Detail

### handle

    public void handle(HttpRequest request,
                       HttpResponse response,
                       java.lang.Exception exception)
                throws java.lang.Exception

  Base handler of handler Exceptions.
  Specified by:
    handle in interface ExceptionHandler
  Parameters:
    `request` - The HTTP request that was handled
    `response` - The HTTP response. The headersWritten() method needs to be checked to determine if headers were sent before the exception.
    `exception` - Any exception thrown by another HttpHandler.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD