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, statusCode
cause, message
AwsServiceException.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.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 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 SdkException.Builder
build
in interface SdkServiceException.Builder
SdkServiceException
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.