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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class feign.FeignException
FeignException.BadGateway, FeignException.BadRequest, FeignException.Conflict, FeignException.Forbidden, FeignException.GatewayTimeout, FeignException.Gone, FeignException.InternalServerError, FeignException.MethodNotAllowed, FeignException.NotAcceptable, FeignException.NotFound, FeignException.NotImplemented, FeignException.ServiceUnavailable, FeignException.TooManyRequests, FeignException.Unauthorized, FeignException.UnprocessableEntity, FeignException.UnsupportedMediaType
-
-
Constructor Summary
Constructors Constructor Description RetryableException(int status, java.lang.String message, Request.HttpMethod httpMethod, java.lang.Throwable cause, java.util.Date retryAfter)RetryableException(int status, 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(int status, 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(int status, 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()
-
-