Class TwitchExtensionsErrorDecoder

java.lang.Object
com.github.twitch4j.extensions.util.TwitchExtensionsErrorDecoder
All Implemented Interfaces:
feign.codec.ErrorDecoder

public class TwitchExtensionsErrorDecoder 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

    Constructors
    Constructor
    Description
    TwitchExtensionsErrorDecoder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, feign.codec.Decoder decoder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(String methodKey, feign.Response response)
    Overwrite the Decode Method to handle custom error cases

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TwitchExtensionsErrorDecoder

      public TwitchExtensionsErrorDecoder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, feign.codec.Decoder decoder)
  • 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