Class FeignClientExceptionErrorDecoder

java.lang.Object
org.qubership.atp.auth.springbootstarter.feign.exception.FeignClientExceptionErrorDecoder
All Implemented Interfaces:
feign.codec.ErrorDecoder

public class FeignClientExceptionErrorDecoder extends Object implements feign.codec.ErrorDecoder
Decodes a failed request response building a FeignClientException. Any error decoding the response body will be thrown as a FeignClientErrorDecodingException
  • Constructor Details

    • FeignClientExceptionErrorDecoder

      public FeignClientExceptionErrorDecoder()
  • Method Details

    • decode

      public FeignClientException decode(String methodKey, feign.Response response)
      Decode exception from response.
      Specified by:
      decode in interface feign.codec.ErrorDecoder
      Parameters:
      methodKey - String key of a method
      response - Response received
      Returns:
      FeignClientException decoded.