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.Builderbuilder()static SdkClientExceptionstatic SdkClientExceptionCreate aSdkClientException.Builderinitialized with the properties of thisSdkClientException.Methods inherited from class software.amazon.awssdk.core.exception.SdkException
numAttempts, rawMessage, retryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
create
-
create
-
getMessage
- Overrides:
getMessagein classThrowable
-
toBuilder
Create aSdkClientException.Builderinitialized with the properties of thisSdkClientException.- Overrides:
toBuilderin classSdkException- Returns:
- A new builder initialized with this config's properties.
-
builder
- Returns:
SdkClientException.Builderinstance to construct a newSdkClientException.
-