Skip to content

HandlerExceptionResolver

HandlerExceptionResolver is a component within the [[Spring MVC]] architecture that defines the strategy for resolving exceptions raised during handler mapping or handler execution[600-developer-java-spring-dispatcherservlet.md][600-developer__java__spring__DispatcherServlet.md].

It functions as one of the strategies utilized by the DispatcherServlet to manage error handling within the web request processing workflow[600-developer-java-spring-dispatcherservlet.md][600-developer__java__spring__DispatcherServlet.md].

Common Implementations

The Spring Framework typically configures several standard resolvers to handle different types of exceptions[600-developer-java-spring-dispatcherservlet.md][600-developer__java__spring__DispatcherServlet.md]:

  • ExceptionHandlerExceptionResolver: Handles exceptions through @ExceptionHandler methods.
  • ResponseStatusExceptionResolver: Supports exceptions annotated with @ResponseStatus.
  • DefaultHandlerExceptionResolver: Converts standard Spring exceptions into HTTP status codes.

Sources

^[600-developer-java-spring-dispatcherservlet.md] ^[600-developer__java__spring__DispatcherServlet.md]