| Package | Description |
|---|---|
| me.alidg.errors.adapter | |
| me.alidg.errors.conf | |
| me.alidg.errors.mvc |
| Constructor and Description |
|---|
HttpErrorAttributes(WebErrorHandlers webErrorHandlers,
HttpErrorAttributesAdapter httpErrorAttributesAdapter)
Initializes the error attributes with required dependencies.
|
| 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 |
|---|---|
org.springframework.boot.web.servlet.error.ErrorAttributes |
ErrorsAutoConfiguration.errorAttributes(WebErrorHandlers webErrorHandlers,
HttpErrorAttributesAdapter httpErrorAttributesAdapter)
Registers a
ErrorAttributes implementation which would replace the default one provided
by the Spring Boot. |
ErrorsControllerAdvice |
ErrorsAutoConfiguration.errorsControllerAdvice(WebErrorHandlers webErrorHandlers,
HttpErrorAttributesAdapter httpErrorAttributesAdapter)
Registers a
RestControllerAdvice to catch all
exceptions thrown by the web layer. |
| Constructor and Description |
|---|
ErrorsControllerAdvice(WebErrorHandlers errorHandlers,
HttpErrorAttributesAdapter httpErrorAttributesAdapter)
Initializing the rest controller advice by injecting the
WebErrorHandlers bean. |
Copyright © 2018. All rights reserved.