public class RetryableException extends FeignException
Response is deemed to be retryable, typically via an
ErrorDecoder when the status is 503.FeignException.BadGateway, FeignException.BadRequest, FeignException.Conflict, FeignException.FeignClientException, FeignException.FeignServerException, 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 and Description |
|---|
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Date retryAfter,
Request request) |
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Throwable cause,
Date retryAfter,
Request request) |
| Modifier and Type | Method and Description |
|---|---|
Request.HttpMethod |
method() |
Date |
retryAfter()
Sometimes corresponds to the
Util.RETRY_AFTER header present in 503
status. |
content, contentUTF8, errorStatus, hasRequest, request, responseBody, statusaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Throwable cause,
Date retryAfter,
Request request)
retryAfter - usually corresponds to the Util.RETRY_AFTER header.public RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Date retryAfter,
Request request)
retryAfter - usually corresponds to the Util.RETRY_AFTER header.public Date retryAfter()
Util.RETRY_AFTER header present in 503
status. Other times parsed from an application-specific response. Null if unknown.public Request.HttpMethod method()
Copyright © 2012–2021 OpenFeign. All rights reserved.