Class AuthorizationErrorDecoder
java.lang.Object
ru.foodtechlab.lib.auth.integration.restapi.feign.commons.AuthorizationErrorDecoder
- All Implemented Interfaces:
feign.codec.ErrorDecoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface feign.codec.ErrorDecoder
feign.codec.ErrorDecoder.Default, feign.codec.ErrorDecoder.RetryAfterDecoder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenServiceprotected final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
mapper
protected final com.fasterxml.jackson.databind.ObjectMapper mapper -
accessTokenService
-
reasonsForRetry
-
-
Constructor Details
-
AuthorizationErrorDecoder
public AuthorizationErrorDecoder()
-
-
Method Details
-
decode
- Specified by:
decodein interfacefeign.codec.ErrorDecoder
-
decode
public Exception decode(ru.foodtechlab.aeh.core.ErrorApiResponse<ru.foodtechlab.aeh.core.Error> errorApiResponse)
-