This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Slf4j | |
public class CustomErrorDecoder implements ErrorDecoder { | |
@Autowired | |
FeignRequestInterceptor feignRequestInterceptor; | |
@Override | |
public Exception decode(String methodKey, Response response) { | |
log.debug("Catched Feign client error {}, {}", methodKey, response); | |
FeignException exception = errorStatus(methodKey, response); |