Class AwsServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.core.exception.SdkException
software.amazon.awssdk.core.exception.SdkServiceException
software.amazon.awssdk.awscore.exception.AwsServiceException
- All Implemented Interfaces:
Serializable,SdkPojo
Extension of
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdditional details pertaining to an exception thrown by an AWS service.static AwsServiceException.Builderbuilder()booleanbooleanChecks if the exception is caused by throttling, considering both generic SDK and AWS-specific error code details.static Class<? extends AwsServiceException.Builder>Create aAwsServiceException.Builderinitialized with the properties of thisAwsServiceException.Methods inherited from class software.amazon.awssdk.core.exception.SdkServiceException
extendedRequestId, isRetryableException, requestId, sdkFields, statusCodeMethods inherited from class software.amazon.awssdk.core.exception.SdkException
create, numAttempts, rawMessage, retryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField
-
Constructor Details
-
AwsServiceException
-
-
Method Details
-
awsErrorDetails
Additional details pertaining to an exception thrown by an AWS service.- Returns:
AwsErrorDetails.
-
getMessage
- Overrides:
getMessagein classThrowable
-
isClockSkewException
public boolean isClockSkewException()- Overrides:
isClockSkewExceptionin classSdkServiceException
-
isThrottlingException
public boolean isThrottlingException()Checks if the exception is caused by throttling, considering both generic SDK and AWS-specific error code details.- Overrides:
isThrottlingExceptionin classSdkServiceException- Returns:
- true if the status code is 429 or if the AWS error code indicates throttling, otherwise false.
-
builder
- Returns:
AwsServiceException.Builderinstance to construct a newAwsServiceException.
-
toBuilder
Create aAwsServiceException.Builderinitialized with the properties of thisAwsServiceException.- Overrides:
toBuilderin classSdkServiceException- Returns:
- A new builder initialized with this config's properties.
-
serializableBuilderClass
-