public class TooManyRequestsException extends AmazonServiceException
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
retryAfterSeconds
The number of seconds the caller should wait before retrying.
|
private static long |
serialVersionUID |
private java.lang.String |
type |
Constructor and Description |
---|
TooManyRequestsException(java.lang.String message)
Constructs a new TooManyRequestsException with the specified error
message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRetryAfterSeconds()
The number of seconds the caller should wait before retrying.
|
java.lang.String |
getType() |
void |
setRetryAfterSeconds(java.lang.String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
|
void |
setType(java.lang.String type) |
TooManyRequestsException |
withRetryAfterSeconds(java.lang.String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
|
TooManyRequestsException |
withType(java.lang.String type) |
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
private static final long serialVersionUID
private java.lang.String retryAfterSeconds
The number of seconds the caller should wait before retrying.
private java.lang.String type
public TooManyRequestsException(java.lang.String message)
message
- Describes the error encountered.public void setRetryAfterSeconds(java.lang.String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
retryAfterSeconds
- The number of seconds the caller should wait before retrying.public java.lang.String getRetryAfterSeconds()
The number of seconds the caller should wait before retrying.
public TooManyRequestsException withRetryAfterSeconds(java.lang.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(java.lang.String type)
type
- public java.lang.String getType()
public TooManyRequestsException withType(java.lang.String type)
type
-