public class RetryableException extends FeignException
Response is deemed to be retryable, typically via an
ErrorDecoder when the status is 503.| Constructor and Description |
|---|
RetryableException(String message,
Date retryAfter) |
RetryableException(String message,
Throwable cause,
Date retryAfter) |
| Modifier and Type | Method and Description |
|---|---|
Date |
retryAfter()
Sometimes corresponds to the
Util.RETRY_AFTER header present in 503
status. |
errorStatus, statusaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RetryableException(String message, Throwable cause, Date retryAfter)
retryAfter - usually corresponds to the Util.RETRY_AFTER header.public RetryableException(String message, 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.Copyright © 2012–2016 OpenFeign. All rights reserved.