public interface ExceptionPresenter
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.RequestExceptionReporter
Modifier and Type | Method and Description |
---|---|
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.
|
void presentException(IRequestCycle cycle, java.lang.Throwable cause)
cycle
- the current request cyclecause
- the exception that was caught