public class ServiceException extends AmazonServiceException
An exception has occurred in AWS Directory Service.
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
requestId |
private static long |
serialVersionUID |
Constructor and Description |
---|
ServiceException(java.lang.String message)
Constructs a new ServiceException 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.
|
ServiceException |
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 ServiceException(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 ServiceException withRequestId(java.lang.String requestId)
requestId
-