| Package | Description |
|---|---|
| me.alidg.errors | |
| me.alidg.errors.handlers |
| Modifier and Type | Method and Description |
|---|---|
HandledException |
WebErrorHandler.handle(Throwable exception)
Handles the given exception and returns an instance of
HandledException. |
| Modifier and Type | Method and Description |
|---|---|
HandledException |
AnnotatedWebErrorHandler.handle(Throwable exception)
Handles the thrown exception annotated with
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. |
HandledException |
SpringMvcWebErrorHandler.handle(Throwable exception)
Bunch of if-else-es to return an appropriate
HandledException based on the
nature of the given exception. |
HandledException |
ConstraintViolationWebErrorHandler.handle(Throwable exception)
Handles the given
ConstraintViolationExceptions by extracting the error codes from the message templates
and also, extracting the arguments from ConstraintDescriptors. |
HandledException |
SpringSecurityWebErrorHandler.handle(Throwable exception)
Bunch of if-else-es to handle Spring Security specific exceptions.
|
HandledException |
LastResortWebErrorHandler.handle(Throwable exception)
Always return 500 Internal Error with
unknown_error as the error code with no
arguments. |
HandledException |
SpringValidationWebErrorHandler.handle(Throwable exception)
After extracting the
BindingResult from the exception, would iterate over all errors and
pack all validation errors with their corresponding to be exposed arguments. |
HandledException |
MissingRequestParametersWebErrorHandler.handle(Throwable exception)
Handles the given exception by selecting the appropriate error code, status code and
to-be-exposed arguments conditionally.
|
Copyright © 2018. All rights reserved.