public class SdkServiceException extends SdkException implements SdkPojo
SdkServiceException provides callers several pieces of information that can be used to obtain more information about the error and why it occurred.
SdkClientException,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static interface |
SdkServiceException.Builder |
protected static class |
SdkServiceException.BuilderImpl |
| Modifier | Constructor and Description |
|---|---|
protected |
SdkServiceException(SdkServiceException.Builder b) |
| Modifier and Type | Method and Description |
|---|---|
static SdkServiceException.Builder |
builder() |
String |
extendedRequestId()
The extendedRequestId that was returned by the called service.
|
boolean |
isClockSkewException()
Specifies whether an exception may have been caused by clock skew.
|
boolean |
isRetryableException()
Specifies whether an exception is retryable.
|
boolean |
isThrottlingException()
Specifies whether an exception is caused by throttling.
|
String |
requestId()
The requestId that was returned by the called service.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SdkServiceException.Builder> |
serializableBuilderClass() |
int |
statusCode()
The status code that was returned by the called service.
|
SdkServiceException.Builder |
toBuilder()
Create a
SdkServiceException.Builder initialized with the properties of this SdkServiceException. |
create, numAttempts, rawMessage, retryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalsBySdkFields, sdkFieldNameToFieldprotected SdkServiceException(SdkServiceException.Builder b)
public String requestId()
public String extendedRequestId()
public int statusCode()
public boolean isClockSkewException()
public boolean isThrottlingException()
true if the status code is
equal to 429 Too Many Requests
but subclasses can override this method to signal that the specific subclass is considered a throttling exception.isRetryableException()public boolean isRetryableException()
false but subclasses can override this
value to signal that the specific subclass is considered retryable.isThrottlingException()public static SdkServiceException.Builder builder()
SdkServiceException.Builder instance to construct a new SdkServiceException.public SdkServiceException.Builder toBuilder()
SdkServiceException.Builder initialized with the properties of this SdkServiceException.toBuilder in class SdkExceptionpublic static Class<? extends SdkServiceException.Builder> serializableBuilderClass()
Copyright © 2026. All rights reserved.