: Class TerseExceptionHandler

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 TerseExceptionHandler

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

public class TerseExceptionHandler
extends java.lang.Object
implements ExceptionHandler

Handle an Exception from a HttpHandler in a more terse fashion than sending a stack trace to the client. Why? Becuase I don't want to send stack traces to clients.

Version:
  $Id: TerseExceptionHandler.java,v 1.2 1999/09/22 15:08:42 gregw Exp $
Author:
  Brett Sealey
See Also:
  `DefaultExceptionHandler`

Constructor Summary
`TerseExceptionHandler()`

Method Summary
`void` | `handle(HttpRequest request, HttpResponse response, java.lang.Exception exception)` The function called to handle an exception thrown while handling a request.

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

Constructor Detail

### TerseExceptionHandler

    public TerseExceptionHandler()

Method Detail

### handle

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

  The function called to handle an exception thrown while handling a request.
  Specified by:
    handle in interface ExceptionHandler
  Parameters:
    `request` - - what was being served.
    `response` - - where any response should go
    `exception` - - what went wrong
  Throws:
    java.lang.Exception - when it can't send an error back to the client
  See Also:
    `HttpServer`

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