@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClientException extends AWSDirectoryServiceException
A client exception has occurred.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
ClientException(String message)
Constructs a new ClientException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRequestId()
Returns the AWS request ID that uniquely identifies the service request
the caller made.
|
void |
setRequestId(String requestId)
Sets the AWS requestId for this exception.
|
ClientException |
withRequestId(String requestId) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ClientException(String message)
message - Describes the error encountered.public void setRequestId(String requestId)
AmazonServiceExceptionsetRequestId in class AmazonServiceExceptionrequestId - public String getRequestId()
AmazonServiceExceptiongetRequestId in class AmazonServiceExceptionpublic ClientException withRequestId(String requestId)
requestId -