Class EntityAlreadyExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.amazonaws.AmazonClientException
-
- com.amazonaws.AmazonServiceException
-
- com.amazonaws.services.directory.model.EntityAlreadyExistsException
-
- All Implemented Interfaces:
Serializable
public class EntityAlreadyExistsException extends AmazonServiceException
The specified entity already exists.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
-
Constructor Summary
Constructors Constructor Description EntityAlreadyExistsException(String message)Constructs a new EntityAlreadyExistsException with the specified error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRequestId()Returns the AWS request ID that uniquely identifies the service request the caller made.voidsetRequestId(String requestId)Sets the AWS requestId for this exception.EntityAlreadyExistsExceptionwithRequestId(String requestId)-
Methods inherited from class com.amazonaws.AmazonServiceException
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setServiceName, setStatusCode
-
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
EntityAlreadyExistsException
public EntityAlreadyExistsException(String message)
Constructs a new EntityAlreadyExistsException with the specified error message.- Parameters:
message- Describes the error encountered.
-
-
Method Detail
-
setRequestId
public void setRequestId(String requestId)
Description copied from class:AmazonServiceExceptionSets the AWS requestId for this exception.- Overrides:
setRequestIdin classAmazonServiceException- Parameters:
requestId-
-
getRequestId
public String getRequestId()
Description copied from class:AmazonServiceExceptionReturns the AWS request ID that uniquely identifies the service request the caller made.- Overrides:
getRequestIdin classAmazonServiceException- Returns:
-
withRequestId
public EntityAlreadyExistsException withRequestId(String requestId)
- Parameters:
requestId-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-