| Package | Description |
|---|---|
| me.alidg.errors | |
| me.alidg.errors.conf | |
| me.alidg.errors.handlers |
| Constructor and Description |
|---|
WebErrorHandlers(org.springframework.context.MessageSource messageSource,
List<WebErrorHandler> implementations,
WebErrorHandler defaultWebErrorHandler,
ExceptionRefiner exceptionRefiner)
To initialize the
WebErrorHandlers instance with a code-to-message translator, a
non-empty collection of WebErrorHandler implementations and an optional fallback
error handler. |
| Constructor and Description |
|---|
WebErrorHandlers(org.springframework.context.MessageSource messageSource,
List<WebErrorHandler> implementations,
WebErrorHandler defaultWebErrorHandler,
ExceptionRefiner exceptionRefiner)
To initialize the
WebErrorHandlers instance with a code-to-message translator, a
non-empty collection of WebErrorHandler implementations and an optional fallback
error handler. |
| Modifier and Type | Method and Description |
|---|---|
WebErrorHandlers |
ErrorsAutoConfiguration.webErrorHandlers(org.springframework.context.MessageSource messageSource,
List<WebErrorHandler> customHandlers,
WebErrorHandler defaultWebErrorHandler,
ExceptionRefiner exceptionRefiner)
Registers a bean of type
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. |
| Modifier and Type | Method and Description |
|---|---|
WebErrorHandlers |
ErrorsAutoConfiguration.webErrorHandlers(org.springframework.context.MessageSource messageSource,
List<WebErrorHandler> customHandlers,
WebErrorHandler defaultWebErrorHandler,
ExceptionRefiner exceptionRefiner)
Registers a bean of type
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. |
| Modifier and Type | Class and Description |
|---|---|
class |
AnnotatedWebErrorHandler
WebErrorHandler implementation responsible for handling exceptions annotated with
the ExceptionMapping annotation. |
class |
ConstraintViolationWebErrorHandler
A
WebErrorHandler implementation responsible for handling ConstraintViolationExceptions
from bean validation. |
class |
LastResortWebErrorHandler
The default fallback
WebErrorHandler which will be used when all
other registered handlers refuse to handle a particular exception. |
class |
MissingRequestParametersWebErrorHandler
Spring Framework 5.1 added a few specific MVC exceptions for missing header, cookie,
matrix variables to allow for differentiated exception handling and status codes.
|
class |
SpringMvcWebErrorHandler
A
WebErrorHandler implementation responsible for handling common Spring MVC
specific exceptions. |
class |
SpringSecurityWebErrorHandler
A
WebErrorHandler implementation responsible for handling Spring Security
related exceptions. |
class |
SpringValidationWebErrorHandler
A
WebErrorHandler responsible for handling validation errors thrown by
the web layer. |
Copyright © 2018. All rights reserved.