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
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:
SdkServiceException
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SdkClientException.Builder
protected static class
SdkClientException.BuilderImpl
-
Constructor Summary
Constructors Modifier Constructor Description protected
SdkClientException(SdkClientException.Builder b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SdkClientException.Builder
builder()
static SdkClientException
create(String message)
static SdkClientException
create(String message, Throwable cause)
String
getMessage()
SdkClientException.Builder
toBuilder()
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
-
-
-
-
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:
getMessage
in classThrowable
-
toBuilder
public SdkClientException.Builder 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
public static SdkClientException.Builder builder()
- Returns:
SdkClientException.Builder
instance to construct a newSdkClientException
.
-
-