public class LimitExceededException extends AmazonServiceException
The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
canRetry
You can immediately retry your request.
|
private java.lang.String |
errorCode
Code that indicates the type of error that is generated.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
LimitExceededException(java.lang.String message)
Constructs a new LimitExceededException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getCanRetry()
You can immediately retry your request.
|
java.lang.String |
getErrorCode()
Code that indicates the type of error that is generated.
|
java.lang.Boolean |
isCanRetry()
You can immediately retry your request.
|
void |
setCanRetry(java.lang.Boolean canRetry)
You can immediately retry your request.
|
void |
setErrorCode(LimitExceededErrorCode errorCode)
Code that indicates the type of error that is generated.
|
void |
setErrorCode(java.lang.String errorCode)
Code that indicates the type of error that is generated.
|
LimitExceededException |
withCanRetry(java.lang.Boolean canRetry)
You can immediately retry your request.
|
LimitExceededException |
withErrorCode(LimitExceededErrorCode errorCode)
Code that indicates the type of error that is generated.
|
LimitExceededException |
withErrorCode(java.lang.String errorCode)
Code that indicates the type of error that is generated.
|
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
Code that indicates the type of error that is generated.
private java.lang.Boolean canRetry
You can immediately retry your request.
public LimitExceededException(java.lang.String message)
message
- Describes the error encountered.public void setErrorCode(java.lang.String errorCode)
Code that indicates the type of error that is generated.
setErrorCode
in class AmazonServiceException
errorCode
- Code that indicates the type of error that is generated.LimitExceededErrorCode
public java.lang.String getErrorCode()
Code that indicates the type of error that is generated.
getErrorCode
in class AmazonServiceException
LimitExceededErrorCode
public LimitExceededException withErrorCode(java.lang.String errorCode)
Code that indicates the type of error that is generated.
errorCode
- Code that indicates the type of error that is generated.LimitExceededErrorCode
public void setErrorCode(LimitExceededErrorCode errorCode)
Code that indicates the type of error that is generated.
errorCode
- Code that indicates the type of error that is generated.LimitExceededErrorCode
public LimitExceededException withErrorCode(LimitExceededErrorCode errorCode)
Code that indicates the type of error that is generated.
errorCode
- Code that indicates the type of error that is generated.LimitExceededErrorCode
public void setCanRetry(java.lang.Boolean canRetry)
You can immediately retry your request.
canRetry
- You can immediately retry your request.public java.lang.Boolean getCanRetry()
You can immediately retry your request.
public LimitExceededException withCanRetry(java.lang.Boolean canRetry)
You can immediately retry your request.
canRetry
- You can immediately retry your request.public java.lang.Boolean isCanRetry()
You can immediately retry your request.