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,EndpointDiscoveryFailedException,NonRetryableException,RetryableException
public class SdkClientException extends SdkException
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
SdkClientExceptionare 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:
 SdkServiceException, Serialized Form
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSdkClientException.Builderprotected static classSdkClientException.BuilderImpl 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedSdkClientException(SdkClientException.Builder b) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SdkClientException.Builderbuilder()static SdkClientExceptioncreate(String message)static SdkClientExceptioncreate(String message, Throwable cause)StringgetMessage()SdkClientException.BuildertoBuilder()Create aSdkClientException.Builderinitialized 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 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
SdkClientException
protected SdkClientException(SdkClientException.Builder b)
 
 - 
 
- 
Method Detail
- 
create
public static SdkClientException create(String message)
 
- 
create
public static SdkClientException create(String message, Throwable cause)
 
- 
getMessage
public String getMessage()
- Overrides:
 getMessagein classThrowable
 
- 
toBuilder
public SdkClientException.Builder toBuilder()
Create aSdkClientException.Builderinitialized with the properties of thisSdkClientException.- Overrides:
 toBuilderin classSdkException- Returns:
 - A new builder initialized with this config's properties.
 
 
- 
builder
public static SdkClientException.Builder builder()
- Returns:
 SdkClientException.Builderinstance to construct a newSdkClientException.
 
 - 
 
 -