Uses of Interface
org.springframework.web.servlet.HandlerExceptionResolver
Package
Description
Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.Contains built-in
MockMvcBuilder
implementations.Annotation-based setup for Spring MVC.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
Support package for annotation-based Servlet MVC controllers.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Support package for MVC controllers.
-
Uses of HandlerExceptionResolver in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.handlerExceptionResolvers
(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use.MockMvcWebTestClient.RouterFunctionSpec.handlerExceptionResolvers
(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use. -
Uses of HandlerExceptionResolver in org.springframework.test.web.servlet.setup
Modifier and TypeMethodDescriptionRouterFunctionMockMvcBuilder.setHandlerExceptionResolvers
(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use as an array.StandaloneMockMvcBuilder.setHandlerExceptionResolvers
(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use as an array.Modifier and TypeMethodDescriptionRouterFunctionMockMvcBuilder.setHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) Set the HandlerExceptionResolver types to use as a list.StandaloneMockMvcBuilder.setHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) Set the HandlerExceptionResolver types to use as a list. -
Uses of HandlerExceptionResolver in org.springframework.web.servlet.config.annotation
Modifier and TypeMethodDescriptionWebMvcConfigurationSupport.handlerExceptionResolver
(ContentNegotiationManager contentNegotiationManager) Returns aHandlerExceptionResolverComposite
containing a list of exception resolvers obtained either throughWebMvcConfigurationSupport.configureHandlerExceptionResolvers(java.util.List<org.springframework.web.servlet.HandlerExceptionResolver>)
or throughWebMvcConfigurationSupport.addDefaultHandlerExceptionResolvers(java.util.List<org.springframework.web.servlet.HandlerExceptionResolver>, org.springframework.web.accept.ContentNegotiationManager)
.Modifier and TypeMethodDescriptionprotected final void
WebMvcConfigurationSupport.addDefaultHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers, ContentNegotiationManager mvcContentNegotiationManager) A method available to subclasses for adding defaultHandlerExceptionResolvers
.protected void
DelegatingWebMvcConfiguration.configureHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) protected void
WebMvcConfigurationSupport.configureHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) Override this method to configure the list ofHandlerExceptionResolvers
to use.default void
WebMvcConfigurer.configureHandlerExceptionResolvers
(List<HandlerExceptionResolver> resolvers) Configure exception resolvers.protected void
DelegatingWebMvcConfiguration.extendHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) protected void
WebMvcConfigurationSupport.extendHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) Override this method to extend or modify the list ofHandlerExceptionResolvers
after it has been configured.default void
WebMvcConfigurer.extendHandlerExceptionResolvers
(List<HandlerExceptionResolver> resolvers) Extending or modify the list of exception resolvers configured by default. -
Uses of HandlerExceptionResolver in org.springframework.web.servlet.handler
Modifier and TypeClassDescriptionclass
Abstract base class forHandlerExceptionResolver
implementations.class
Abstract base class forHandlerExceptionResolver
implementations that support handling exceptions from handlers of typeHandlerMethod
.class
AHandlerExceptionResolver
that delegates to a list of otherHandlerExceptionResolvers
.class
HandlerExceptionResolver
implementation that allows for mapping exception class names to view names, either for a set of given handlers or for all handlers in the DispatcherServlet.Modifier and TypeMethodDescriptionHandlerExceptionResolverComposite.getExceptionResolvers()
Return the list of exception resolvers to delegate to.Modifier and TypeMethodDescriptionvoid
HandlerExceptionResolverComposite.setExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) Set the list of exception resolvers to delegate to. -
Uses of HandlerExceptionResolver in org.springframework.web.servlet.mvc.annotation
Modifier and TypeClassDescriptionclass
AHandlerExceptionResolver
that uses the@ResponseStatus
annotation to map exceptions to HTTP status codes. -
Uses of HandlerExceptionResolver in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeClassDescriptionclass
AnAbstractHandlerMethodExceptionResolver
that resolves exceptions through@ExceptionHandler
methods. -
Uses of HandlerExceptionResolver in org.springframework.web.servlet.mvc.support
Modifier and TypeClassDescriptionclass
The default implementation of theHandlerExceptionResolver
interface, resolving standard Spring MVC exceptions and translating them to corresponding HTTP status codes.