public final class RetryableException extends SdkClientException
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() |
static RetryableException |
create(String message) |
static RetryableException |
create(String message,
Throwable cause) |
boolean |
retryable()
Specifies whether or not an exception can be expected to succeed on a retry.
|
RetryableException.Builder |
toBuilder()
Create a
SdkClientException.Builder initialized with the properties of this SdkClientException. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected RetryableException(RetryableException.Builder b)
public static RetryableException create(String message)
public static RetryableException create(String message, Throwable cause)
public boolean retryable()
SdkExceptionretryable in class SdkExceptionpublic RetryableException.Builder toBuilder()
SdkClientExceptionSdkClientException.Builder initialized with the properties of this SdkClientException.toBuilder in class SdkClientExceptionpublic static RetryableException.Builder builder()
Copyright © 2020. All rights reserved.