@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RequestThrottledException extends AmazonEBSException
The number of API requests has exceeded the maximum allowed API request throttling limit for the snapshot. For more information see Error retries.
AmazonServiceException.ErrorType
Constructor and Description |
---|
RequestThrottledException(String message)
Constructs a new RequestThrottledException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getReason()
The reason for the exception.
|
void |
setReason(String reason)
The reason for the exception.
|
RequestThrottledException |
withReason(RequestThrottledExceptionReason reason)
The reason for the exception.
|
RequestThrottledException |
withReason(String reason)
The reason for the exception.
|
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 RequestThrottledException(String message)
message
- Describes the error encountered.public void setReason(String reason)
The reason for the exception.
reason
- The reason for the exception.RequestThrottledExceptionReason
public String getReason()
The reason for the exception.
RequestThrottledExceptionReason
public RequestThrottledException withReason(String reason)
The reason for the exception.
reason
- The reason for the exception.RequestThrottledExceptionReason
public RequestThrottledException withReason(RequestThrottledExceptionReason reason)
The reason for the exception.
reason
- The reason for the exception.RequestThrottledExceptionReason