Class AuthorizationErrorDecoder

java.lang.Object
ru.foodtechlab.lib.auth.integration.restapi.feign.commons.AuthorizationErrorDecoder
All Implemented Interfaces:
feign.codec.ErrorDecoder

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

    • mapper

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

      protected final AccessTokenService accessTokenService
    • reasonsForRetry

      protected List<String> reasonsForRetry
  • Constructor Details

    • AuthorizationErrorDecoder

      public AuthorizationErrorDecoder()
  • Method Details

    • 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)