public class TooManyRequestsException extends AmazonServiceException
AmazonServiceException.ErrorType
Constructor and Description |
---|
TooManyRequestsException(String message)
Constructs a new TooManyRequestsException with the specified error
message.
|
Modifier and Type | Method and Description |
---|---|
String |
getRetryAfterSeconds()
The number of seconds the caller should wait before retrying.
|
String |
getType() |
void |
setRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
|
void |
setType(String type) |
TooManyRequestsException |
withRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
|
TooManyRequestsException |
withType(String type) |
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, 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
- Copyright © 2017. All rights reserved.