Interface ErrorHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ErrorHandler
andThen
(@NonNull ErrorHandler after) boolean
handle
(HttpStatus httpStatus, ErrorResponse response) Handles the given error response.
-
Method Details
-
handle
Handles the given error response. If a given handler is unable to handle the error, it should return false, allowing further handlers to attempt to handle the error.- Parameters:
httpStatus
- the HTTP status code of the responseresponse
- the error response- Returns:
- true if the error was handled, false otherwise
-
andThen
-