Class ExampleSecureErrorDecoder

  • All Implemented Interfaces:
    feign.codec.ErrorDecoder

    public class ExampleSecureErrorDecoder
    extends ru.foodtechlab.lib.auth.integration.restapi.feign.commons.AuthorizationErrorDecoder
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface feign.codec.ErrorDecoder

        feign.codec.ErrorDecoder.Default, feign.codec.ErrorDecoder.RetryAfterDecoder
    • Field Summary

      • Fields inherited from class ru.foodtechlab.lib.auth.integration.restapi.feign.commons.AuthorizationErrorDecoder

        accessTokenService, mapper, reasonsForRetry
    • Constructor Summary

      Constructors 
      Constructor Description
      ExampleSecureErrorDecoder​(com.fasterxml.jackson.databind.ObjectMapper mapper, ru.foodtechlab.lib.auth.integration.core.AccessTokenService accessTokenService)  
    • Constructor Detail

      • ExampleSecureErrorDecoder

        public ExampleSecureErrorDecoder​(com.fasterxml.jackson.databind.ObjectMapper mapper,
                                         ru.foodtechlab.lib.auth.integration.core.AccessTokenService accessTokenService)
    • Method Detail

      • decode

        public Exception decode​(io.foodtechlab.exceptionhandler.core.ErrorApiResponse<io.foodtechlab.exceptionhandler.core.Error> errorApiResponse)
        Overrides:
        decode in class ru.foodtechlab.lib.auth.integration.restapi.feign.commons.AuthorizationErrorDecoder