public class NoFreeAddressesInSubnetException extends AmazonServiceException
Returned if IpAddress
was not specified in the request and there
are no free IP addresses in the subnet.
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorCode |
private static long |
serialVersionUID |
Constructor and Description |
---|
NoFreeAddressesInSubnetException(java.lang.String message)
Constructs a new NoFreeAddressesInSubnetException with the specified
error message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Returns the AWS error code represented by this exception.
|
void |
setErrorCode(java.lang.String errorCode)
Sets the AWS error code represented by this exception.
|
NoFreeAddressesInSubnetException |
withErrorCode(java.lang.String errorCode) |
getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
private static final long serialVersionUID
private java.lang.String errorCode
public NoFreeAddressesInSubnetException(java.lang.String message)
message
- Describes the error encountered.public void setErrorCode(java.lang.String errorCode)
AmazonServiceException
setErrorCode
in class AmazonServiceException
errorCode
- public java.lang.String getErrorCode()
AmazonServiceException
getErrorCode
in class AmazonServiceException
public NoFreeAddressesInSubnetException withErrorCode(java.lang.String errorCode)
errorCode
-