@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TooManyRequestsException extends AWSAmplifyBackendException
An error that is returned when a limit of a specific type has been exceeded.
AmazonServiceException.ErrorType
Constructor and Description |
---|
TooManyRequestsException(String message)
Constructs a new TooManyRequestsException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getLimitType()
The type of limit that was exceeded.
|
void |
setLimitType(String limitType)
The type of limit that was exceeded.
|
TooManyRequestsException |
withLimitType(String limitType)
The type of limit that was exceeded.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, 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 setLimitType(String limitType)
The type of limit that was exceeded.
limitType
- The type of limit that was exceeded.public String getLimitType()
The type of limit that was exceeded.
public TooManyRequestsException withLimitType(String limitType)
The type of limit that was exceeded.
limitType
- The type of limit that was exceeded.