| org.springframework.web.servlet.HandlerExceptionResolver
All known Subclasses: org.springframework.web.servlet.handler.SimpleMappingExceptionResolver,
HandlerExceptionResolver | public interface HandlerExceptionResolver (Code) | | Interface to be implemented by objects than can resolve exceptions thrown
during handler mapping or execution, in the typical case to error views.
Implementors are typically registered as beans in the application context.
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.
author: Juergen Hoeller since: 22.11.2003 |
resolveException | ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)(Code) | | Try to resolve the given exception that got thrown during on handler execution,
returning a ModelAndView that represents a specific error page if appropriate.
Parameters: request - current HTTP request Parameters: response - current HTTP response Parameters: handler - the executed handler, or null if none chosen at thetime of the exception (for example, if multipart resolution failed) Parameters: ex - the exception that got thrown during handler execution a corresponding ModelAndView to forward to, or null for default processing |
|
|