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

## org.apache.tapestry5.services
Interface RequestExceptionHandler

All Known Implementing Classes:
  DefaultRequestExceptionHandler

    public interface RequestExceptionHandler

Service invoked when an uncaught exception occurs. The error handler is responsible for providing a response to the user to describe the error.

Method Summary
`void` | `handleRequestException(java.lang.Throwable exception)` Reponsible for handling the error in some way and providing some response to the client.

Method Detail

### handleRequestException

    void handleRequestException(java.lang.Throwable exception)
                                throws java.io.IOException

  Reponsible for handling the error in some way and providing some response to the client. A default implementation may render an error response page.

  The handler is also responsible for setting the response status and the X-Tapestry-ErrorMessage response header. These are very important in Ajax requests to allow the client-side logic to detect the error and present it to the user.

  Parameters:
    `exception` - uncaught exception to be reported
  Throws:
    `java.io.IOException`

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

Copyright © 2003-2012 The Apache Software Foundation.