Error views are analogous to JSP error pages but can be used with any kind of exception including any checked exception, with potentially fine-grained mappings for specific handlers.
| Modifier and Type | Method and Description |
|---|---|
| public ModelAndView | Returns: a correspondingModelAndView to forward to,
or null for default processing in the resolution chaincurrent 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)Try to resolve the given exception that got thrown during handler execution,
returning a |
| resolveException | back to summary |
|---|---|
| public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) Try to resolve the given exception that got thrown during handler execution,
returning a The returned
| |