WebErrorHandler implementation responsible for handling exceptions annotated with
the ExceptionMapping annotation.Auto-configuration imports to enable web error handlers
support for Spring MVC tests.ExceptionMapping annotation.ConstraintViolationExceptions that contains at least one
ConstraintViolation.ServletExceptions and HttpMessageNotReadableExceptions.AccessDeniedException or AuthenticationExceptions.WebErrorHandler implementation responsible for handling ConstraintViolationExceptions
from bean validation.HttpErrorAttributesAdapter which converts the given
HttpError to a Map like following: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.EnvironmentPostProcessor which allows to override a particular bean
definition, e.g.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.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.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.ErrorAttributes
which adapts the handled HttpError to a Spring Boot's compatible error attributes
representation.HttpErrorAttributesAdapter, registers the default
implementation of HttpErrorAttributesAdapter as a bean, to adapt our
HttpError to Spring's ErrorAttributes abstraction.WebErrorHandler which will be used when all
other registered handlers refuse to handle a particular exception.WebErrorHandler to handle new Servlet exceptions defined in Spring Framework 5.1.Accept header is invalid.Content-Type header is not supported.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.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 instance with a code-to-message translator, a
non-empty collection of WebErrorHandler implementations and an optional fallback
error handler.Copyright © 2018. All rights reserved.