@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TooManyRequestsException extends AWSLambdaException
You will get this exception for the following reasons. ConcurrentInvocationLimitExceeded is returned if
you have no functions with reserved-concurrency and have exceeded your account concurrent limit or if a function
without reserved concurrency exceeds the account's unreserved concurrency limit.
ReservedFunctionConcurrentInvocationLimitExceeded is returned when a function with reserved concurrency
exceeds its configured concurrent limit. CallerRateLimitExceeded is returned when your account limit is
exceeded and you have not reserved concurrency on any function. For more information, see
concurrent-executions
AmazonServiceException.ErrorType| Constructor and Description |
|---|
TooManyRequestsException(String message)
Constructs a new TooManyRequestsException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReason() |
String |
getRetryAfterSeconds()
The number of seconds the caller should wait before retrying.
|
String |
getType() |
void |
setReason(String reason) |
void |
setReason(ThrottleReason reason) |
void |
setRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
|
void |
setType(String type) |
TooManyRequestsException |
withReason(String reason) |
TooManyRequestsException |
withReason(ThrottleReason reason) |
TooManyRequestsException |
withRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
|
TooManyRequestsException |
withType(String type) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TooManyRequestsException(String message)
message - Describes the error encountered.public void setRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
retryAfterSeconds - The number of seconds the caller should wait before retrying.public String getRetryAfterSeconds()
The number of seconds the caller should wait before retrying.
public TooManyRequestsException withRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
retryAfterSeconds - The number of seconds the caller should wait before retrying.public void setType(String type)
type - public String getType()
public TooManyRequestsException withType(String type)
type - public void setReason(String reason)
reason - ThrottleReasonpublic String getReason()
ThrottleReasonpublic TooManyRequestsException withReason(String reason)
reason - ThrottleReasonpublic void setReason(ThrottleReason reason)
reason - ThrottleReasonpublic TooManyRequestsException withReason(ThrottleReason reason)
reason - ThrottleReasonCopyright © 2017. All rights reserved.