Class SdkClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.core.exception.SdkException
software.amazon.awssdk.core.exception.SdkClientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbortedException
,ApiCallAttemptTimeoutException
,ApiCallTimeoutException
,Crc32MismatchException
,Ec2MetadataClientException
,EndpointDiscoveryFailedException
,ExpiredTokenException
,NonRetryableException
,RetryableException
,SdkJsonGenerator.JsonGenerationException
Base type for all client exceptions thrown by the SDK.
This exception is thrown when service could not be contacted for a response,
or when client is unable to parse the response from service.
Exceptions that extend SdkClientException
are assumed to be not retryable, with a few exceptions:
RetryableException
- usable when calls should explicitly be retried- Exceptions mentioned as a retryable exception in
SdkDefaultRetrySetting
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SdkClientException.Builder
builder()
static SdkClientException
static SdkClientException
Create aSdkClientException.Builder
initialized with the properties of thisSdkClientException
.Methods inherited from class software.amazon.awssdk.core.exception.SdkException
numAttempts, rawMessage, retryable
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
create
-
create
-
getMessage
- Overrides:
getMessage
in classThrowable
-
toBuilder
Create aSdkClientException.Builder
initialized with the properties of thisSdkClientException
.- Overrides:
toBuilder
in classSdkException
- Returns:
- A new builder initialized with this config's properties.
-
builder
- Returns:
SdkClientException.Builder
instance to construct a newSdkClientException
.
-