public class ClientException extends AmazonServiceException
A client exception has occurred.
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
requestId |
private static long |
serialVersionUID |
Constructor and Description |
---|
ClientException(java.lang.String message)
Constructs a new ClientException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRequestId()
Returns the AWS request ID that uniquely identifies the service request
the caller made.
|
void |
setRequestId(java.lang.String requestId)
Sets the AWS requestId for this exception.
|
ClientException |
withRequestId(java.lang.String requestId) |
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setServiceName, setStatusCode
isRetryable
private static final long serialVersionUID
private java.lang.String requestId
public ClientException(java.lang.String message)
message
- Describes the error encountered.public void setRequestId(java.lang.String requestId)
AmazonServiceException
setRequestId
in class AmazonServiceException
requestId
- public java.lang.String getRequestId()
AmazonServiceException
getRequestId
in class AmazonServiceException
public ClientException withRequestId(java.lang.String requestId)
requestId
-