public interface ErrorHandler
Users can implement this interface in their own classes to define their own
error handling behaviour. This class is created using an ErrorHandlerFactory.
The factory is invoked once per request, before the action is processed. See
ErrorHandlerFactory
.
Modifier and Type | Method and Description |
---|---|
View |
handleError(Throwable e)
This method is invoked when an error occurs during action processing.
|
View handleError(Throwable e)
This method is invoked when an error occurs during action processing. Specifically, if a controller or action cannot be resolved, or the action cannot be invoked, or the original View cannot be rendered, this method is called, and the returned View is rendered.
e
- the Throwable thrown during action processingCopyright © 2011-2012 MojaveMVC.org