Class RetryableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.core.exception.SdkException
software.amazon.awssdk.core.exception.SdkClientException
software.amazon.awssdk.core.exception.RetryableException
- All Implemented Interfaces:
Serializable
Extension of
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.- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RetryableException.Builder
builder()
static RetryableException
static RetryableException
boolean
Specifies whether or not an exception can be expected to succeed on a retry.Create aSdkClientException.Builder
initialized with the properties of thisSdkClientException
.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
create
-
create
-
retryable
public boolean retryable()Description copied from class:SdkException
Specifies whether or not an exception can be expected to succeed on a retry.- Overrides:
retryable
in classSdkException
-
toBuilder
Description copied from class:SdkClientException
Create aSdkClientException.Builder
initialized with the properties of thisSdkClientException
.- Overrides:
toBuilder
in classSdkClientException
- Returns:
- A new builder initialized with this config's properties.
-
builder
-