feign
Class RetryableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
feign.FeignException
feign.RetryableException
- All Implemented Interfaces:
- java.io.Serializable
public class RetryableException
- extends FeignException
This exception is raised when the Response
is deemed to be retryable,
typically via an ErrorDecoder
when the status
is 503.
- See Also:
- Serialized Form
Constructor Summary |
RetryableException(java.lang.String message,
java.util.Date retryAfter)
|
RetryableException(java.lang.String message,
java.lang.Throwable cause,
java.util.Date retryAfter)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RetryableException
public RetryableException(java.lang.String message,
java.lang.Throwable cause,
java.util.Date retryAfter)
- Parameters:
retryAfter
- usually corresponds to the Util.RETRY_AFTER
header.
RetryableException
public RetryableException(java.lang.String message,
java.util.Date retryAfter)
- Parameters:
retryAfter
- usually corresponds to the Util.RETRY_AFTER
header.
retryAfter
public java.util.Date retryAfter()
- Sometimes corresponds to the
Util.RETRY_AFTER
header
present in 503
status. Other times parsed from an
application-specific response. Null if unknown.