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 theResponseis deemed to be retryable, typically via anErrorDecoderwhen thestatusis 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.HttpMethodmethod()java.util.DateretryAfter()Sometimes corresponds to theUtil.RETRY_AFTERheader present in503status.-
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_AFTERheader.
-
RetryableException
public RetryableException(java.lang.String message, Request.HttpMethod httpMethod, java.util.Date retryAfter)- Parameters:
retryAfter- usually corresponds to theUtil.RETRY_AFTERheader.
-
-
Method Detail
-
retryAfter
public java.util.Date retryAfter()
Sometimes corresponds to theUtil.RETRY_AFTERheader present in503status. Other times parsed from an application-specific response. Null if unknown.
-
method
public Request.HttpMethod method()
-
-