public class AwsServiceException extends SdkServiceException
SdkServiceException
that represents an error response returned
by an Amazon web service.
AmazonServiceException provides callers several pieces of information that can be used to obtain more information about the error and why it occurred. In particular, the errorType field can be used to determine if the caller's request was invalid, or the service encountered an error on the server side while processing it.
SdkServiceException
,
Serialized FormModifier and Type | Class and Description |
---|---|
static interface |
AwsServiceException.Builder |
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 or not an exception is caused by clock skew.
|
boolean |
isThrottlingException()
Specifies whether or not an exception is caused by throttling.
|
static Class<? extends AwsServiceException.Builder> |
serializableBuilderClass() |
AwsServiceException.Builder |
toBuilder()
Create a
AwsServiceException.Builder initialized with the properties of this AwsServiceException . |
requestId, statusCode
retryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AwsErrorDetails awsErrorDetails()
AwsErrorDetails
.public String getMessage()
getMessage
in class Throwable
public boolean isClockSkewException()
SdkServiceException
isClockSkewException
in class SdkServiceException
public boolean isThrottlingException()
SdkServiceException
isThrottlingException
in class SdkServiceException
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 SdkServiceException
public static Class<? extends AwsServiceException.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.