@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TooManyRequestsException extends AmazonAthenaException
Indicates that the request was throttled.
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() |
void |
setReason(String reason) |
void |
setReason(ThrottleReason reason) |
TooManyRequestsException |
withReason(String reason) |
TooManyRequestsException |
withReason(ThrottleReason reason) |
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 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 © 2013 Amazon Web Services, Inc. All Rights Reserved.