public interface HandlerExceptionResolver
Error views are analogous to the error page JSPs, but can be used with any kind of exception including any checked exception, with potentially fine-granular mappings for specific handlers.
| Modifier and Type | Method and Description |
|---|---|
ModelAndView |
resolveException(RenderRequest request,
RenderResponse response,
Object handler,
Exception ex)
Try to resolve the given exception that got thrown during on handler execution,
returning a ModelAndView that represents a specific error page if appropriate.
|
ModelAndView |
resolveException(ResourceRequest request,
ResourceResponse response,
Object handler,
Exception ex)
Try to resolve the given exception that got thrown during on handler execution,
returning a ModelAndView that represents a specific error page if appropriate.
|
ModelAndView resolveException(RenderRequest request, RenderResponse response, Object handler, Exception ex)
request - current portlet requestresponse - current portlet responsehandler - the executed handler, or null if none chosen at the time of
the exception (for example, if multipart resolution failed)ex - the exception that got thrown during handler executionnull for default processingModelAndView resolveException(ResourceRequest request, ResourceResponse response, Object handler, Exception ex)
request - current portlet requestresponse - current portlet responsehandler - the executed handler, or null if none chosen at the time of
the exception (for example, if multipart resolution failed)ex - the exception that got thrown during handler executionnull for default processing