protected static class AwsServiceException.BuilderImpl extends SdkServiceException.BuilderImpl implements AwsServiceException.Builder
| Modifier and Type | Field and Description |
|---|---|
protected AwsErrorDetails |
awsErrorDetails |
extendedRequestId, requestId, statusCodecause, message, numAttempts, writableStackTrace| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(AwsServiceException ex) |
| Modifier and Type | Method and Description |
|---|---|
AwsErrorDetails |
awsErrorDetails()
The
AwsErrorDetails from the service response. |
AwsServiceException.Builder |
awsErrorDetails(AwsErrorDetails awsErrorDetails)
Specifies the additional awsErrorDetails from the service response.
|
AwsServiceException |
build()
Creates a new
SdkException with the specified properties. |
AwsServiceException.Builder |
cause(Throwable cause)
Specifies the exception that caused this exception to occur.
|
Duration |
clockSkew()
The request-level time skew between the client and server date for the request that generated this exception.
|
AwsServiceException.Builder |
clockSkew(Duration clockSkew)
The request-level time skew between the client and server date for the request that generated this exception.
|
AwsServiceException.Builder |
extendedRequestId(String extendedRequestId)
Specifies the extendedRequestId returned by the called service.
|
AwsErrorDetails |
getAwsErrorDetails() |
AwsServiceException.Builder |
message(String message)
Specifies the details of this exception.
|
AwsServiceException.Builder |
numAttempts(Integer numAttempts) |
AwsServiceException.Builder |
requestId(String requestId)
Specifies the requestId returned by the called service.
|
void |
setAwsErrorDetails(AwsErrorDetails awsErrorDetails) |
AwsServiceException.Builder |
statusCode(int statusCode)
Specifies the status code returned by the service.
|
AwsServiceException.Builder |
writableStackTrace(Boolean writableStackTrace)
Specifies whether the stack trace in this exception can be written.
|
extendedRequestId, getExtendedRequestId, getRequestId, getStatusCode, requestId, sdkFields, setExtendedRequestId, setRequestId, setStatusCode, statusCodecause, getCause, getMessage, getNumAttempts, getWritableStackTrace, message, numAttempts, setAttemptCount, setCause, setMessage, setWritableStackTrace, writableStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextendedRequestId, requestId, statusCodecause, message, numAttempts, writableStackTraceequalsBySdkFields, sdkFieldNameToField, sdkFieldsprotected AwsErrorDetails awsErrorDetails
protected BuilderImpl()
protected BuilderImpl(AwsServiceException ex)
public AwsServiceException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
AwsServiceException.BuilderawsErrorDetails in interface AwsServiceException.BuilderawsErrorDetails - Object containing additional details from the response.public AwsErrorDetails awsErrorDetails()
AwsServiceException.BuilderAwsErrorDetails from the service response.awsErrorDetails in interface AwsServiceException.BuilderAwsErrorDetails.public AwsErrorDetails getAwsErrorDetails()
public void setAwsErrorDetails(AwsErrorDetails awsErrorDetails)
public AwsServiceException.Builder clockSkew(Duration clockSkew)
AwsServiceException.BuilderclockSkew in interface AwsServiceException.Builderpublic Duration clockSkew()
AwsServiceException.BuilderclockSkew in interface AwsServiceException.Builderpublic AwsServiceException.Builder message(String message)
SdkException.Buildermessage in interface AwsServiceException.Buildermessage in interface SdkException.Buildermessage in interface SdkServiceException.Buildermessage in class SdkServiceException.BuilderImplmessage - The details of this exception.public AwsServiceException.Builder numAttempts(Integer numAttempts)
numAttempts in interface AwsServiceException.BuildernumAttempts in interface SdkException.BuildernumAttempts in interface SdkServiceException.BuildernumAttempts in class SdkServiceException.BuilderImplnumAttempts - The attempt countpublic AwsServiceException.Builder cause(Throwable cause)
SdkException.Buildercause in interface AwsServiceException.Buildercause in interface SdkException.Buildercause in interface SdkServiceException.Buildercause in class SdkServiceException.BuilderImplcause - The exception that caused this exception to occur.public AwsServiceException.Builder writableStackTrace(Boolean writableStackTrace)
SdkException.BuilderwritableStackTrace in interface SdkException.BuilderwritableStackTrace in interface SdkServiceException.BuilderwritableStackTrace in class SdkServiceException.BuilderImplwritableStackTrace - Whether the stack trace can be written.public AwsServiceException.Builder requestId(String requestId)
SdkServiceException.BuilderrequestId in interface AwsServiceException.BuilderrequestId in interface SdkServiceException.BuilderrequestId in class SdkServiceException.BuilderImplrequestId - A string that identifies the request made to a service.public AwsServiceException.Builder extendedRequestId(String extendedRequestId)
SdkServiceException.BuilderextendedRequestId in interface AwsServiceException.BuilderextendedRequestId in interface SdkServiceException.BuilderextendedRequestId in class SdkServiceException.BuilderImplextendedRequestId - A string that identifies the request made to a service.public AwsServiceException.Builder statusCode(int statusCode)
SdkServiceException.BuilderstatusCode in interface AwsServiceException.BuilderstatusCode in interface SdkServiceException.BuilderstatusCode in class SdkServiceException.BuilderImplstatusCode - an int containing the status code returned by the service.public AwsServiceException build()
SdkException.BuilderSdkException with the specified properties.build in interface AwsServiceException.Builderbuild in interface SdkException.Builderbuild in interface SdkServiceException.Builderbuild in interface Buildablebuild in class SdkServiceException.BuilderImplSdkException.Copyright © 2026. All rights reserved.