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)
Deprecated.
|
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Date retryAfter,
Request request,
byte[] responseBody,
Map<String,Collection<String>> responseHeaders)
Deprecated.
|
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Long retryAfter,
Request request) |
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Long retryAfter,
Request request,
byte[] responseBody,
Map<String,Collection<String>> responseHeaders) |
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Throwable cause,
Date retryAfter,
Request request)
Deprecated.
|
RetryableException(int status,
String message,
Request.HttpMethod httpMethod,
Throwable cause,
Long retryAfter,
Request request) |
Modifier and Type | Method and Description |
---|---|
Request.HttpMethod |
method() |
Long |
retryAfter()
Sometimes corresponds to the
Util.RETRY_AFTER header present in 503
status. |
content, contentUTF8, errorStatus, errorStatus, hasRequest, request, responseBody, responseHeaders, status
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RetryableException(int status, String message, Request.HttpMethod httpMethod, Throwable cause, Long retryAfter, Request request)
retryAfter
- usually corresponds to the Util.RETRY_AFTER
header.@Deprecated public RetryableException(int status, String message, Request.HttpMethod httpMethod, Throwable cause, Date retryAfter, Request request)
public RetryableException(int status, String message, Request.HttpMethod httpMethod, Long retryAfter, Request request)
retryAfter
- usually corresponds to the Util.RETRY_AFTER
header.@Deprecated public RetryableException(int status, String message, Request.HttpMethod httpMethod, Date retryAfter, Request request)
public RetryableException(int status, String message, Request.HttpMethod httpMethod, Long retryAfter, Request request, byte[] responseBody, Map<String,Collection<String>> responseHeaders)
retryAfter
- usually corresponds to the Util.RETRY_AFTER
header.@Deprecated public RetryableException(int status, String message, Request.HttpMethod httpMethod, Date retryAfter, Request request, byte[] responseBody, Map<String,Collection<String>> responseHeaders)
public Long 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–2023 OpenFeign. All rights reserved.