feign
Class RetryableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by feign.FeignException
                  extended by 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)
           
 
Method Summary
 java.util.Date retryAfter()
          Sometimes corresponds to the Util.RETRY_AFTER header present in 503 status.
 
Methods inherited from class feign.FeignException
errorStatus
 
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
 

Constructor Detail

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.
Method Detail

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.