public class AwsServiceException extends SdkServiceException
SdkServiceException that represents an error response returned
by an Amazon web service.
AwsServiceException provides callers several pieces of information that can be used to obtain more information about the error and why it occurred.
SdkServiceException,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsServiceException.Builder |
protected static class |
AwsServiceException.BuilderImpl |
| Modifier | Constructor and Description |
|---|---|
protected |
AwsServiceException(AwsServiceException.Builder b) |
| Modifier and Type | Method and Description |
|---|---|
AwsErrorDetails |
awsErrorDetails()
Additional details pertaining to an exception thrown by an AWS service.
|
static AwsServiceException.Builder |
builder() |
String |
getMessage() |
boolean |
isClockSkewException()
Specifies whether an exception may have been caused by clock skew.
|
boolean |
isThrottlingException()
Checks if the exception is caused by throttling, considering both generic SDK and AWS-specific error code details.
|
static Class<? extends AwsServiceException.Builder> |
serializableBuilderClass() |
AwsServiceException.Builder |
toBuilder()
Create a
AwsServiceException.Builder initialized with the properties of this AwsServiceException. |
extendedRequestId, isRetryableException, requestId, sdkFields, statusCodecreate, numAttempts, rawMessage, retryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalsBySdkFields, sdkFieldNameToFieldprotected AwsServiceException(AwsServiceException.Builder b)
public AwsErrorDetails awsErrorDetails()
AwsErrorDetails.public String getMessage()
getMessage in class Throwablepublic boolean isClockSkewException()
SdkServiceExceptionisClockSkewException in class SdkServiceExceptionpublic boolean isThrottlingException()
isThrottlingException in class SdkServiceExceptionSdkServiceException.isRetryableException()public static AwsServiceException.Builder builder()
AwsServiceException.Builder instance to construct a new AwsServiceException.public AwsServiceException.Builder toBuilder()
AwsServiceException.Builder initialized with the properties of this AwsServiceException.toBuilder in class SdkServiceExceptionpublic static Class<? extends AwsServiceException.Builder> serializableBuilderClass()
Copyright © 2026. All rights reserved.