public class SdkServiceException extends SdkException
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.
SdkClientException
,
Serialized FormModifier 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() |
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.
|
String |
requestId()
The requestId that was returned by the called service.
|
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 . |
retryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected SdkServiceException(SdkServiceException.Builder b)
public String requestId()
public int statusCode()
public boolean isClockSkewException()
public boolean 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 SdkException
public static Class<? extends SdkServiceException.Builder> serializableBuilderClass()
Copyright © 2018. All rights reserved.