WebErrorHandler implementation responsible for handling exceptions annotated with
the ExceptionMapping annotation.Argument instance based on the given name-value pair.Auto-configuration imports to enable web error handlers
support for Spring MVC and Web Flux tests.WebErrorHandlers instance from the current builder state.WebErrorHandlersBuilder API.ExceptionMapping annotation.ConstraintViolationExceptions that contains at least one
ConstraintViolation.ResponseStatusException.ServletExceptions and HttpMessageNotReadableExceptions.AccessDeniedException or AuthenticationExceptions.TypeMismatchException.WebErrorHandler implementation responsible for handling ConstraintViolationExceptions
from bean validation.HttpErrorAttributesAdapter which converts the given
HttpError to a Map like following:DefaultHttpErrorAttributesAdapter given the
configuration properties.ErrorAttributes implementation which would replace the default one provided
by the Spring Boot.WebErrorHandlers filled with
builtin, custom and default fallback WebErrorHandlers.RestControllerAdvice to catch all
exceptions thrown by the web layer.WebErrorHandlers assistance.WebErrorHandlers bean.ExceptionLogger in the absence of a custom logger.ExceptionLoggers.ExceptionRefiner in the absence of a custom refiner.ExceptionRefiner.arguments into the given error representationFingerprintProvider in the absence of a custom provider.HttpError.httpError.ReactiveErrorAttributes.webErrorHandlers and then adapting
the representation.ExceptionMapping by using the
ExceptionMapping.errorCode() as the error code, the ExceptionMapping.statusCode()
as the HTTP status code and also, exposing exception members annotated with ExposeAsArg.ConstraintViolationExceptions by extracting the error codes from the message templates
and also, extracting the arguments from ConstraintDescriptors.unknown_error as the error code with no
arguments.ResponseStatusException class in its own unique and appropriate way.HandledException based on the
nature of the given exception.BindingResult from the exception, would iterate over all errors and
pack all validation errors with their corresponding to be exposed arguments.TypeMismatchException and return a handled exception
instance by extracting the error code and exposing appropriate arguments.HandledException.exception, first it would select an appropriate exception handler or
falls back to a default handler and then tries to handle the exception using the chosen
handler.HttpErrorAttributesAdapter, registers the default
implementation of HttpErrorAttributesAdapter as a bean, to adapt our
HttpError to Spring's ErrorAttributes abstraction.TemplateAwareMessageSource.messageSource.WebErrorHandler which will be used when all
other registered handlers refuse to handle a particular exception.FingerprintProvider which generates a
fingerprint from the handled exception using the following formula:WebErrorHandler to handle new Servlet exceptions defined in Spring Framework 5.1.Accept header is invalid.Content-Type header is not supported.ErrorAttributes
which adapts the handled HttpError to a Spring Boot's compatible error attributes
representation.ServerAccessDeniedHandler and another
ServerAuthenticationEntryPoint when the Reactive Spring Security is detected.ResponseStatusExceptions.WebErrorHandler implementation expert at handling exceptions of type
ResponseStatusException.ErrorAttributes
which adapts the handled HttpError to a Spring Boot's compatible error attributes
representation.AccessDeniedHandler and another
AuthenticationEntryPoint when the traditional Spring Security is detected.WebErrorHandler implementation responsible for handling common Spring MVC
specific exceptions.WebErrorHandler bean to handle Spring Security specific exceptions when
Spring Security's jar file is present on the classpath.WebErrorHandler implementation responsible for handling Spring Security
related exceptions.WebErrorHandler responsible for handling validation errors thrown by
the web layer.MessageSource capable of resolving templated expressions.TemplateAwareMessageSource with the given messageSource
to resolve messages.WebErrorHandler implementation responsible for handling TypeMismatchExceptions.HttpErrors.WebErrorHandlers (If not provided by the user) filled with a set of
built-in WebErrorHandlers, a set of custom WebErrorHandlers and a default fallback
WebErrorHandler.WebErrorHandler implementations.WebErrorHandlers.builder(MessageSource) instead.WebErrorHandlers instances.Copyright © 2019. All rights reserved.