| Package | Description |
|---|---|
| me.alidg.errors | |
| me.alidg.errors.conf | |
| me.alidg.errors.handlers |
| Modifier and Type | Method and Description |
|---|---|
WebErrorHandlersBuilder |
WebErrorHandlersBuilder.withDefaultWebErrorHandler(WebErrorHandler defaultWebErrorHandler)
Represents the default web error handler we're gonna use when all other handlers
refuse to handle an exception.
|
WebErrorHandlersBuilder |
WebErrorHandlersBuilder.withErrorHandlers(WebErrorHandler... webErrorHandlers)
Collection of error handlers to consult when facing a new exception.
|
| Modifier and Type | Method and Description |
|---|---|
WebErrorHandlersBuilder |
WebErrorHandlersBuilder.withErrorHandlers(Collection<WebErrorHandler> webErrorHandlers)
Collection of error handlers to consult when facing a new exception.
|
| Constructor and Description |
|---|
WebErrorHandlers(org.springframework.context.MessageSource messageSource,
List<WebErrorHandler> webErrorHandlers,
WebErrorHandler defaultWebErrorHandler,
ExceptionRefiner exceptionRefiner,
ExceptionLogger exceptionLogger)
Deprecated.
Use
WebErrorHandlers.builder(MessageSource) instead. |
| Constructor and Description |
|---|
WebErrorHandlers(org.springframework.context.MessageSource messageSource,
List<WebErrorHandler> webErrorHandlers,
WebErrorHandler defaultWebErrorHandler,
ExceptionRefiner exceptionRefiner,
ExceptionLogger exceptionLogger)
Deprecated.
Use
WebErrorHandlers.builder(MessageSource) instead. |
| Modifier and Type | Method and Description |
|---|---|
WebErrorHandlers |
ErrorsAutoConfiguration.webErrorHandlers(org.springframework.context.MessageSource messageSource,
List<WebErrorHandler> customHandlers,
WebErrorHandler defaultWebErrorHandler,
ExceptionRefiner exceptionRefiner,
ExceptionLogger exceptionLogger,
List<WebErrorHandlerPostProcessor> webErrorHandlerPostProcessors,
FingerprintProvider fingerprintProvider,
ErrorsProperties errorsProperties,
org.springframework.context.ApplicationContext context)
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,
ExceptionLogger exceptionLogger,
List<WebErrorHandlerPostProcessor> webErrorHandlerPostProcessors,
FingerprintProvider fingerprintProvider,
ErrorsProperties errorsProperties,
org.springframework.context.ApplicationContext context)
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 |
ResponseStatusWebErrorHandler
WebErrorHandler implementation expert at handling exceptions of type
ResponseStatusException. |
class |
ServletWebErrorHandler
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. |
class |
TypeMismatchWebErrorHandler
A
WebErrorHandler implementation responsible for handling TypeMismatchExceptions. |
Copyright © 2019. All rights reserved.