HandlerExceptionResolver
implementations that support handling exceptions from handlers of type HandlerMethod.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final ModelAndView | doResolveException(HttpServletRequest
current HTTP request request, HttpServletResponse current HTTP response response, Object the executed handler, or handler, Exception null if none chosen at the time
of the exception (for example, if multipart resolution failed)the exception that got thrown during handler execution ex)Implements abstract org. Actually resolve the given exception that got thrown during handler execution,
returning a |
| protected abstract ModelAndView | Returns: a corresponding ModelAndView to forward to, ornull for default processingcurrent HTTP request request, HttpServletResponse current HTTP response response, HandlerMethod the executed handler method, or handlerMethod, Exception null if none chosen at the time
of the exception (for example, if multipart resolution failed)the exception that got thrown during handler execution ex)Actually resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate. |
| protected boolean | hasGlobalExceptionHandlers()
Whether this resolver has global exception handlers, e.g. not declared in
the same class as the |
| protected boolean | shouldApplyTo(HttpServletRequest
current HTTP request request, Object the executed handler, or handler)null if none chosen
at the time of the exception (for example, if multipart resolution failed)Overrides org. Checks if the handler is a |
| AbstractHandlerMethodExceptionResolver | back to summary |
|---|---|
| public AbstractHandlerMethodExceptionResolver() | |
| doResolveException | back to summary |
|---|---|
| protected final ModelAndView doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) Implements abstract org. Doc from org. Actually resolve the given exception that got thrown during handler execution,
returning a May be overridden in subclasses, in order to apply specific exception checks. Note that this template method will be invoked after checking whether this resolver applies ("mappedHandlers" etc), so an implementation may simply proceed with its actual exception handling.
| |
| doResolveHandlerMethodException | back to summary |
|---|---|
| protected abstract ModelAndView doResolveHandlerMethodException(HttpServletRequest request, HttpServletResponse response, HandlerMethod handlerMethod, Exception ex) Actually resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate. May be overridden in subclasses, in order to apply specific exception checks. Note that this template method will be invoked after checking whether this resolved applies ("mappedHandlers" etc), so an implementation may simply proceed with its actual exception handling.
| |
| hasGlobalExceptionHandlers | back to summary |
|---|---|
| protected boolean hasGlobalExceptionHandlers() Whether this resolver has global exception handlers, e.g. not declared in
the same class as the
| |
| shouldApplyTo | back to summary |
|---|---|
| protected boolean shouldApplyTo(HttpServletRequest request, Object handler) Overrides org. Checks if the handler is a
| |