Interface HttpClientErrorDecoder
Strategy interface for decoding the error from a server respponse.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Argument<?>
getErrorType
(MediaType mediaType) Gets the error type for the given media type.getMessage
(Object error) Default message decoder.
-
Field Details
-
DEFAULT
The default implementation.
-
-
Method Details
-
getMessage
Default message decoder.- Parameters:
error
- The error object- Returns:
- The message
-
getErrorType
Gets the error type for the given media type.- Parameters:
mediaType
- The media type- Returns:
- The error type
-