public static class ErrorDecoder.Default extends Object implements ErrorDecoder
ErrorDecoder.Default, ErrorDecoder.RetryAfterDecoder| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
Exception |
decode(String methodKey,
Response response)
Implement this method in order to decode an HTTP
Response when Response.status() is not in the 2xx range. |
public Exception decode(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.RetryableExceptionCopyright © 2012–2016 OpenFeign. All rights reserved.