public static interface SdkServiceException.Builder extends SdkException.Builder, SdkPojo
Modifier and Type | Method and Description |
---|---|
SdkServiceException |
build()
Creates a new
SdkServiceException with the specified properties. |
SdkServiceException.Builder |
cause(Throwable cause)
Specifies the exception that caused this exception to occur.
|
SdkServiceException.Builder |
message(String message)
Specifies the details of this exception.
|
String |
requestId()
The requestId returned by the called service.
|
SdkServiceException.Builder |
requestId(String requestId)
Specifies the requestId returned by the called service.
|
int |
statusCode()
The status code returned by the service.
|
SdkServiceException.Builder |
statusCode(int statusCode)
Specifies the status code returned by the service.
|
cause, message
equalsBySdkFields, sdkFields
SdkServiceException.Builder message(String message)
SdkException.Builder
message
in interface SdkException.Builder
message
- The details of this exception.SdkServiceException.Builder cause(Throwable cause)
SdkException.Builder
cause
in interface SdkException.Builder
cause
- The exception that caused this exception to occur.SdkServiceException.Builder requestId(String requestId)
requestId
- A string that identifies the request made to a service.String requestId()
SdkServiceException.Builder statusCode(int statusCode)
statusCode
- an int containing the status code returned by the service.int statusCode()
SdkServiceException build()
SdkServiceException
with the specified properties.build
in interface Buildable
build
in interface SdkException.Builder
SdkServiceException
.Copyright © 2019. All rights reserved.