Class TwitchHelixErrorDecoder

java.lang.Object
com.github.twitch4j.helix.TwitchHelixErrorDecoder
All Implemented Interfaces:
feign.codec.ErrorDecoder

public class TwitchHelixErrorDecoder extends Object implements feign.codec.ErrorDecoder
  • Constructor Details

    • TwitchHelixErrorDecoder

      public TwitchHelixErrorDecoder(feign.codec.Decoder decoder, TwitchHelixRateLimitTracker rateLimitTracker)
      Constructor
      Parameters:
      decoder - Feign Decoder
      rateLimitTracker - Helix Rate Limit Tracker
  • Method Details

    • decode

      public Exception decode(String methodKey, feign.Response response)
      Overwrite the Decode Method to handle custom error cases
      Specified by:
      decode in interface feign.codec.ErrorDecoder
      Parameters:
      methodKey - Method Key
      response - Response
      Returns:
      Exception