Class AuthorizationErrorDecoder

  • All Implemented Interfaces:
    feign.codec.ErrorDecoder

    public class AuthorizationErrorDecoder
    extends Object
    implements feign.codec.ErrorDecoder
    • Field Detail

      • mapper

        protected final com.fasterxml.jackson.databind.ObjectMapper mapper
      • accessTokenService

        protected final ru.foodtechlab.lib.auth.integration.core.AccessTokenService accessTokenService
      • reasonsForRetry

        protected List<String> reasonsForRetry
    • Constructor Detail

      • AuthorizationErrorDecoder

        public AuthorizationErrorDecoder()
    • Method Detail

      • decode

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

        public Exception decode​(io.foodtechlab.exceptionhandler.core.ErrorApiResponse<io.foodtechlab.exceptionhandler.core.Error> errorApiResponse)