Class FeignClientExceptionErrorDecoder

  • All Implemented Interfaces:
    feign.codec.ErrorDecoder

    public class FeignClientExceptionErrorDecoder
    extends Object
    implements feign.codec.ErrorDecoder
    This error decoder produces either a FeignClientException or a RetryableException.
    Author:
    Christian Bremer
    • Constructor Detail

      • FeignClientExceptionErrorDecoder

        public FeignClientExceptionErrorDecoder()
        Instantiates a new feign client exception error decoder.
      • FeignClientExceptionErrorDecoder

        public FeignClientExceptionErrorDecoder​(org.bremersee.exception.RestApiExceptionParser parser)
        Instantiates a new Feign client exception error decoder.
        Parameters:
        parser - the parser
    • Method Detail

      • decode

        public Exception decode​(String methodKey,
                                feign.Response response)
        Specified by:
        decode in interface feign.codec.ErrorDecoder