@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceException extends AWSDirectoryServiceException
An exception has occurred in AWS Directory Service.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ServiceException(String message)
Constructs a new ServiceException 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.
|
ServiceException |
withRequestId(String requestId) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServiceException(String message)
message
- Describes the error encountered.public void setRequestId(String requestId)
AmazonServiceException
setRequestId
in class AmazonServiceException
requestId
- public String getRequestId()
AmazonServiceException
getRequestId
in class AmazonServiceException
public ServiceException withRequestId(String requestId)
requestId
- Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.