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.
|
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.
|
requestId, statusCodecause, messageAwsServiceException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
awsErrorDetails - Object containing additional details from the response.AwsErrorDetails awsErrorDetails()
AwsErrorDetails from the service response.AwsErrorDetails.AwsServiceException.Builder message(String message)
SdkException.Buildermessage in interface SdkException.Buildermessage in interface SdkServiceException.Buildermessage - The details of this exception.AwsServiceException.Builder cause(Throwable t)
SdkException.Buildercause in interface SdkException.Buildercause in interface SdkServiceException.Buildert - The exception that caused this exception to occur.AwsServiceException.Builder requestId(String requestId)
SdkServiceException.BuilderrequestId in interface SdkServiceException.BuilderrequestId - A string that identifies the request made to a service.AwsServiceException.Builder statusCode(int statusCode)
SdkServiceException.BuilderstatusCode in interface SdkServiceException.BuilderstatusCode - an int containing the status code returned by the service.AwsServiceException build()
SdkServiceException.BuilderSdkServiceException with the specified properties.build in interface SdkException.Builderbuild in interface SdkServiceException.BuilderSdkServiceException.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.