Class TwitchExtensionsErrorDecoder
java.lang.Object
com.github.twitch4j.extensions.util.TwitchExtensionsErrorDecoder
- 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
-
Constructor Summary
ConstructorDescriptionTwitchExtensionsErrorDecoder
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, feign.codec.Decoder decoder) -
Method Summary
-
Constructor Details
-
TwitchExtensionsErrorDecoder
public TwitchExtensionsErrorDecoder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, feign.codec.Decoder decoder)
-
-
Method Details
-
decode
Overwrite the Decode Method to handle custom error cases- Specified by:
decode
in interfacefeign.codec.ErrorDecoder
- Parameters:
methodKey
- Method Keyresponse
- Response- Returns:
- Exception
-