-
Method Summary
Specifies the exception that caused this exception to occur.
The extendedRequestId returned by the called service.
Specifies the extendedRequestId returned by the called service.
Specifies the details of this exception.
The requestId returned by the called service.
Specifies the requestId returned by the called service.
int
The status code returned by the service.
Specifies the status code returned by the service.
Specifies whether the stack trace in this exception can be written.
-
Method Details
-
message
Specifies the details of this exception.
- Specified by:
message in interface SdkException.Builder
- Parameters:
message - The details of this exception.
- Returns:
- This method for object chaining
-
cause
Specifies the exception that caused this exception to occur.
- Specified by:
cause in interface SdkException.Builder
- Parameters:
cause - The exception that caused this exception to occur.
- Returns:
- This object for method chaining.
-
writableStackTrace
Specifies whether the stack trace in this exception can be written.
- Specified by:
writableStackTrace in interface SdkException.Builder
- Parameters:
writableStackTrace - Whether the stack trace can be written.
- Returns:
- This method for object chaining
-
numAttempts
- Specified by:
numAttempts in interface SdkException.Builder
- Parameters:
numAttempts - The attempt count
- Returns:
- This method for object chaining
-
requestId
Specifies the requestId returned by the called service.
- Parameters:
requestId - A string that identifies the request made to a service.
- Returns:
- This object for method chaining.
-
requestId
The requestId returned by the called service.
- Returns:
- String containing the requestId
-
extendedRequestId
Specifies the extendedRequestId returned by the called service.
- Parameters:
extendedRequestId - A string that identifies the request made to a service.
- Returns:
- This object for method chaining.
-
extendedRequestId
The extendedRequestId returned by the called service.
- Returns:
- String containing the extendedRequestId
-
statusCode
Specifies the status code returned by the service.
- Parameters:
statusCode - an int containing the status code returned by the service.
- Returns:
- This method for object chaining.
-
statusCode
int statusCode()
The status code returned by the service.
- Returns:
- int containing the status code
-