Package com.github.twitch4j.tmi
Class TwitchMessagingInterfaceErrorDecoder
java.lang.Object
com.github.twitch4j.tmi.TwitchMessagingInterfaceErrorDecoder
- All Implemented Interfaces:
feign.codec.ErrorDecoder
public class TwitchMessagingInterfaceErrorDecoder
extends Object
implements 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
ConstructorDescriptionTwitchMessagingInterfaceErrorDecoder
(feign.codec.Decoder decoder) Constructor -
Method Summary
-
Constructor Details
-
TwitchMessagingInterfaceErrorDecoder
public TwitchMessagingInterfaceErrorDecoder(feign.codec.Decoder decoder) Constructor- Parameters:
decoder
- Feign 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
-