@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, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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
- ThrottleReason
public String getReason()
ThrottleReason
public TooManyRequestsException withReason(String reason)
reason
- ThrottleReason
public void setReason(ThrottleReason reason)
reason
- ThrottleReason
public TooManyRequestsException withReason(ThrottleReason reason)
reason
- ThrottleReason
Copyright © 2017. All rights reserved.