org.springframework.web.servlet
Interface HandlerExceptionResolver

All Known Implementing Classes:
SimpleMappingExceptionResolver

public interface HandlerExceptionResolver

Interface to be implemented by objects than can resolve exceptions thrown by handlers, 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.

Since:
22.11.2003
Author:
Juergen Hoeller

Method Summary
 ModelAndView resolveException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, java.lang.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.
 

Method Detail

resolveException

public ModelAndView resolveException(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response,
                                     java.lang.Object handler,
                                     java.lang.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.

Parameters:
request - current HTTP request
response - current HTTP response
handler - the executed handler
ex - the exception that got thrown during handler execution
Returns:
a matching ModelAndView to forward to, or null for default processing


Copyright (C) 2003-2004 The Spring Framework Project.