Package 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 theResponse
is deemed to be retryable, typically via anErrorDecoder
when thestatus
is 503.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RetryableException(java.lang.String message, Request.HttpMethod httpMethod, java.lang.Throwable cause, java.util.Date retryAfter)
RetryableException(java.lang.String message, Request.HttpMethod httpMethod, java.util.Date retryAfter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Request.HttpMethod
method()
java.util.Date
retryAfter()
Sometimes corresponds to theUtil.RETRY_AFTER
header present in503
status.-
Methods inherited from class feign.FeignException
content, contentUTF8, errorStatus, status
-
-
-
-
Constructor Detail
-
RetryableException
public RetryableException(java.lang.String message, Request.HttpMethod httpMethod, java.lang.Throwable cause, java.util.Date retryAfter)
- Parameters:
retryAfter
- usually corresponds to theUtil.RETRY_AFTER
header.
-
RetryableException
public RetryableException(java.lang.String message, Request.HttpMethod httpMethod, java.util.Date retryAfter)
- Parameters:
retryAfter
- usually corresponds to theUtil.RETRY_AFTER
header.
-
-
Method Detail
-
retryAfter
public java.util.Date retryAfter()
Sometimes corresponds to theUtil.RETRY_AFTER
header present in503
status. Other times parsed from an application-specific response. Null if unknown.
-
method
public Request.HttpMethod method()
-
-