Package org.training.user.service.config
Class FeignClientErrorDecoder
java.lang.Object
org.training.user.service.config.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
Overrides the decode method to handle exception decoding.- Specified by:
decode
in interfacefeign.codec.ErrorDecoder
- Parameters:
s
- The string being decoded.response
- The response from the server.- Returns:
- The decoded exception.
-