| Package | Description |
|---|---|
| me.alidg.errors.adapter | |
| me.alidg.errors.conf | |
| me.alidg.errors.mvc |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultHttpErrorAttributesAdapter
Default implementation of
HttpErrorAttributesAdapter which converts the given
HttpError to a Map like following: |
| Constructor and Description |
|---|
HttpErrorAttributes(WebErrorHandlers webErrorHandlers,
HttpErrorAttributesAdapter httpErrorAttributesAdapter)
Initializes the error attributes with required dependencies.
|
| Modifier and Type | Method and Description |
|---|---|
HttpErrorAttributesAdapter |
ErrorsAutoConfiguration.httpErrorAttributesAdapter()
In the absence of a bean of type
HttpErrorAttributesAdapter, registers the default
implementation of HttpErrorAttributesAdapter as a bean, to adapt our
HttpError to Spring's ErrorAttributes abstraction. |
| 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.