public static interface AwsServiceException.Builder extends SdkServiceException.Builder
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
SdkServiceException with the specified properties. |
AwsServiceException.Builder |
cause(Throwable t)
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 timeOffSet)
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.
|
AwsServiceException.Builder |
message(String message)
Specifies the details of this exception.
|
AwsServiceException.Builder |
requestId(String requestId)
Specifies the requestId returned by the called service.
|
AwsServiceException.Builder |
statusCode(int statusCode)
Specifies the status code returned by the service.
|
extendedRequestId, requestId, statusCode
cause, message
equalsBySdkFields, sdkFields
AwsServiceException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
awsErrorDetails
- Object containing additional details from the response.AwsErrorDetails awsErrorDetails()
AwsErrorDetails
from the service response.AwsErrorDetails
.AwsServiceException.Builder clockSkew(Duration timeOffSet)
Duration clockSkew()
AwsServiceException.Builder message(String message)
SdkException.Builder
message
in interface SdkException.Builder
message
in interface SdkServiceException.Builder
message
- The details of this exception.AwsServiceException.Builder cause(Throwable t)
SdkException.Builder
cause
in interface SdkException.Builder
cause
in interface SdkServiceException.Builder
t
- The exception that caused this exception to occur.AwsServiceException.Builder requestId(String requestId)
SdkServiceException.Builder
requestId
in interface SdkServiceException.Builder
requestId
- A string that identifies the request made to a service.AwsServiceException.Builder extendedRequestId(String extendedRequestId)
SdkServiceException.Builder
extendedRequestId
in interface SdkServiceException.Builder
extendedRequestId
- A string that identifies the request made to a service.AwsServiceException.Builder statusCode(int statusCode)
SdkServiceException.Builder
statusCode
in interface SdkServiceException.Builder
statusCode
- an int containing the status code returned by the service.AwsServiceException build()
SdkServiceException.Builder
SdkServiceException
with the specified properties.build
in interface Buildable
build
in interface SdkException.Builder
build
in interface SdkServiceException.Builder
SdkServiceException
.Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.