org.apache.tapestry.error
Interface ExceptionPresenter
- All Known Implementing Classes:
- ExceptionPresenterImpl, PortletExceptionPresenter
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
presentException
void presentException(IRequestCycle cycle,
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
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.