Class FeignClientErrorDecoder
java.lang.Object
org.training.transactions.configuration.FeignClientErrorDecoder
- 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
Constructors -
Method Summary
-
Constructor Details
-
FeignClientErrorDecoder
public FeignClientErrorDecoder()
-
-
Method Details
-
decode
Decodes the response and returns an Exception based on the status code.- Specified by:
decodein interfacefeign.codec.ErrorDecoder- Parameters:
s- The string representation of the response.response- The HTTP response.- Returns:
- An Exception based on the status code.
-