public static class ErrorDecoder.Default extends java.lang.Object implements ErrorDecoder
ErrorDecoder.Default, ErrorDecoder.RetryAfterDecoder| Constructor and Description |
|---|
ErrorDecoder.Default() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception |
decode(java.lang.String methodKey,
Response response)
Implement this method in order to decode an HTTP
Response when Response.status() is not in the 2xx range. |
public java.lang.Exception decode(java.lang.String methodKey,
Response response)
ErrorDecoderResponse when Response.status() is not in the 2xx range. Please raise application-specific exceptions where
possible. If your exception is retryable, wrap or subclass RetryableExceptiondecode in interface ErrorDecodermethodKey - Feign.configKey(java.lang.Class, java.lang.reflect.Method) of the java method that invoked the request.
ex. IAM#getUser()response - HTTP response where status is greater than or equal
to 300.RetryableException