public class RetryableException extends FeignException
Response is deemed to be retryable, typically via an
ErrorDecoder when the status is 503.FeignException.BadGateway, FeignException.BadRequest, FeignException.Conflict, FeignException.Forbidden, FeignException.GatewayTimeout, FeignException.Gone, FeignException.InternalServerError, FeignException.MethodNotAllowed, FeignException.NotAcceptable, FeignException.NotFound, FeignException.NotImplemented, FeignException.ServiceUnavailable, FeignException.TooManyRequests, FeignException.Unauthorized, FeignException.UnprocessableEntity, FeignException.UnsupportedMediaType| Constructor and Description |
|---|
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Date retryAfter) |
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Throwable cause,
Date retryAfter) |
| Modifier and Type | Method and Description |
|---|---|
Request.HttpMethod |
method() |
Date |
retryAfter()
Sometimes corresponds to the
Util.RETRY_AFTER header present in 503
status. |
content, contentUTF8, errorStatus, statusaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Throwable cause,
Date retryAfter)
retryAfter - usually corresponds to the Util.RETRY_AFTER header.public RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Date retryAfter)
retryAfter - usually corresponds to the Util.RETRY_AFTER header.public Date retryAfter()
Util.RETRY_AFTER header present in 503
status. Other times parsed from an application-specific response. Null if unknown.public Request.HttpMethod method()
Copyright © 2012–2019 OpenFeign. All rights reserved.