Class SdkServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.core.exception.SdkException
software.amazon.awssdk.core.exception.SdkServiceException
- All Implemented Interfaces:
Serializable,SdkPojo
- Direct Known Subclasses:
AwsServiceException
Extension of SdkException that represents an error response returned by
the requested downstream service. Receiving an exception of this type indicates that
the caller's request was correctly transmitted to the service, but for some
reason, the service was not able to process it, and returned an error
response instead.
Exceptions that extend SdkServiceException are assumed to be able to be
successfully retried.
SdkServiceException 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 Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SdkServiceException.Builderbuilder()The extendedRequestId that was returned by the called service.booleanSpecifies whether or not an exception may have been caused by clock skew.booleanSpecifies whether or not an exception is caused by throttling.The requestId that was returned by the called service.static Class<? extends SdkServiceException.Builder> intThe status code that was returned by the called service.Create aSdkServiceException.Builderinitialized with the properties of thisSdkServiceException.Methods inherited from class software.amazon.awssdk.core.exception.SdkException
create, retryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Method Details
-
requestId
The requestId that was returned by the called service.- Returns:
- String containing the requestId
-
extendedRequestId
The extendedRequestId that was returned by the called service.- Returns:
- String ctontaining the extendedRequestId
-
statusCode
public int statusCode()The status code that was returned by the called service.- Returns:
- int containing the status code.
-
isClockSkewException
public boolean isClockSkewException()Specifies whether or not an exception may have been caused by clock skew. -
isThrottlingException
public boolean isThrottlingException()Specifies whether or not an exception is caused by throttling.- Returns:
- true if the status code is 429, otherwise false.
-
builder
- Returns:
SdkServiceException.Builderinstance to construct a newSdkServiceException.
-
toBuilder
Create aSdkServiceException.Builderinitialized with the properties of thisSdkServiceException.- Overrides:
toBuilderin classSdkException- Returns:
- A new builder initialized with this config's properties.
-
serializableBuilderClass
-
sdkFields
-