Skip to main content

HandlerExceptionResolver

Learn HandlerExceptionResolver (Exception Handling, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes HandlerExceptionResolver is the Spring MVC interface with one method, resolveException , that turns an exception into a ModelAndView (or an empty one if it wrote the response). Built-in : ExceptionHandlerExceptionResolver , ResponseStatusExceptionResolver , DefaultHandlerExceptionResolver . Role : the DispatcherServlet calls the resolvers in order until one returns non-null.

More lessons in Exception Handling