Package com.github.twitch4j.helix
Class TwitchHelixErrorDecoder
java.lang.Object
com.github.twitch4j.helix.TwitchHelixErrorDecoder
- 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
ConstructorDescriptionTwitchHelixErrorDecoder
(feign.codec.Decoder decoder, TwitchHelixRateLimitTracker rateLimitTracker) Constructor -
Method Summary
-
Constructor Details
-
TwitchHelixErrorDecoder
public TwitchHelixErrorDecoder(feign.codec.Decoder decoder, TwitchHelixRateLimitTracker rateLimitTracker) Constructor- Parameters:
decoder
- Feign DecoderrateLimitTracker
- Helix Rate Limit Tracker
-
-
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
-