ExceptionResolverAutoConfiguration class final
Auto-configuration class for exception resolvers in Jetleaf.
This configuration provides the default infrastructure pods for handling exceptions thrown during request processing, including:
- Controller advice-based exception resolver
- Error page-based exception resolver
Pods are marked with @Role(DesignRole.INFRASTRUCTURE) indicating
that they are framework infrastructure. Conditional registration
allows developers to override these pods if custom implementations exist.
Pods registered here correspond to the following pod names:
CONTROLLER_ADVICE_EXCEPTION_RESOLVER_POD_NAMEERROR_PAGE_EXCEPTION_RESOLVER_POD_NAME_DEFAULT_REST_CONTROLLER_EXCEPTION_HANDLER_POD_NAME_DEFAULT_CONTROLLER_EXCEPTION_HANDLER_POD_NAME
- Annotations
-
- @Named.new(ExceptionResolverAutoConfiguration.NAME)
- @AutoConfiguration.new()
- @Role.new(DesignRole.INFRASTRUCTURE)
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
controllerAdviceExceptionHandler(
) → ControllerExceptionHandler - Provides a default handler for exceptions thrown by MVC controllers.
-
controllerAdviceExceptionResolver(
MethodArgumentResolverManager methodArgumentResolver, ReturnValueHandlerManager returnValueHandler, ErrorPages pages) → ExceptionResolver -
Provides an exception resolver based on
@ControllerAdvice-like handlers. -
errorPages(
) → ErrorPages -
Provides the default
ErrorPagesused for error page resolution. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restControllerAdviceExceptionHandler(
) → RestControllerExceptionHandler - Provides a default handler for exceptions thrown by REST controllers.
-
restControllerAdviceExceptionResolver(
MethodArgumentResolverManager methodArgumentResolver, ReturnValueHandlerManager returnValueHandler) → ExceptionResolver -
Provides an exception resolver based on
@ControllerAdvice-like handlers. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- DEFAULT_CONTROLLER_EXCEPTION_HANDLER_POD_NAME → const String
- Pod name constant for the default MVC controller exception handler.
- DEFAULT_REST_CONTROLLER_EXCEPTION_HANDLER_POD_NAME → const String
- Pod name constant for the default REST controller exception handler.
- ERROR_PAGES_POD_NAME → const String
- Pod name for the error pages registry.
- HTML_EXCEPTION_RESOLVER_POD_NAME → const String
- Pod name for the Controller Advice exception resolver.
- NAME → const String
- Class name pod for this configuration.
- REST_EXCEPTION_RESOLVER_POD_NAME → const String
- Pod name for the JSON exception resolver.