Interface HttpClientErrorDecoder


@Internal public interface HttpClientErrorDecoder
Strategy interface for decoding the error from a server respponse.
Since:
1.0
Author:
graemerocher
  • Field Details

  • Method Details

    • getMessage

      default Optional<String> getMessage(Object error)
      Default message decoder.
      Parameters:
      error - The error object
      Returns:
      The message
    • getErrorType

      default Argument<?> getErrorType(MediaType mediaType)
      Gets the error type for the given media type.
      Parameters:
      mediaType - The media type
      Returns:
      The error type