org.apache.tapestry.error
Interface ExceptionPresenter
- All Known Implementing Classes:
- ExceptionPresenterImpl
- public interface ExceptionPresenter
Invoked by the IEngine
if there's an uncaught exception
(checked or runtime) processing a request. The ExceptionPresenter is responsible for presenting a
exception message (or description) to the user. The default implementation activates the
"Exception" page, but it is common to override this to do something application specific
(typically, return to the Home page and display an error message there). This service also
provides a good hook for creating a server-side log of exceptions.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
- See Also:
RequestExceptionReporter
Method Summary |
void |
presentException(IRequestCycle cycle,
java.lang.Throwable cause)
Report the exception and provide some response to the user in lieu of the expected result
page. |
presentException
public void presentException(IRequestCycle cycle,
java.lang.Throwable cause)
- Report the exception and provide some response to the user in lieu of the expected result
page.
- Parameters:
cycle
- the current request cyclecause
- the exception that was caught