public final class RetryableException extends SdkException
SdkException
that can be used by clients to
explicitly have an exception retried. This exception will never be
thrown by the SDK unless explicitly used by the client.
See NonRetryableException
for marking non-retryable exceptions.Modifier and Type | Class and Description |
---|---|
static interface |
RetryableException.Builder |
protected static class |
RetryableException.BuilderImpl |
Modifier | Constructor and Description |
---|---|
protected |
RetryableException(RetryableException.Builder b) |
Modifier and Type | Method and Description |
---|---|
static RetryableException.Builder |
builder() |
boolean |
retryable()
Specifies whether or not an exception can be expected to succeed on a retry.
|
RetryableException.Builder |
toBuilder()
Create a
SdkException.Builder initialized with the properties of this SdkException . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected RetryableException(RetryableException.Builder b)
public boolean retryable()
SdkException
retryable
in class SdkException
public RetryableException.Builder toBuilder()
SdkException
SdkException.Builder
initialized with the properties of this SdkException
.toBuilder
in class SdkException
public static RetryableException.Builder builder()
Copyright © 2018. All rights reserved.