Class FeignErrorTranslator

  • All Implemented Interfaces:
    feign.codec.ErrorDecoder

    public class FeignErrorTranslator
    extends Object
    implements feign.codec.ErrorDecoder
    Since Feign throws a FeignException for an error, this class is the translator of a feign exception to a more specific exception.
    • Constructor Detail

      • FeignErrorTranslator

        public FeignErrorTranslator()
    • Method Detail

      • decode

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