public class PolicyEnforcedException extends AmazonServiceException
Returned if a retrieval job would exceed the current data policy's retrieval rate limit. For more information about data retrieval policies,
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
PolicyEnforcedException
|
private static long |
serialVersionUID |
private java.lang.String |
type
Client
|
Constructor and Description |
---|
PolicyEnforcedException(java.lang.String message)
Constructs a new PolicyEnforcedException with the specified error
message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
PolicyEnforcedException
|
java.lang.String |
getType()
Client
|
void |
setCode(java.lang.String code)
PolicyEnforcedException
|
void |
setType(java.lang.String type)
Client
|
PolicyEnforcedException |
withCode(java.lang.String code)
PolicyEnforcedException
|
PolicyEnforcedException |
withType(java.lang.String type)
Client
|
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 type
Client
private java.lang.String code
PolicyEnforcedException
public PolicyEnforcedException(java.lang.String message)
message
- Describes the error encountered.public void setType(java.lang.String type)
Client
type
- Clientpublic java.lang.String getType()
Client
public PolicyEnforcedException withType(java.lang.String type)
Client
type
- Clientpublic void setCode(java.lang.String code)
PolicyEnforcedException
code
- PolicyEnforcedExceptionpublic java.lang.String getCode()
PolicyEnforcedException
public PolicyEnforcedException withCode(java.lang.String code)
PolicyEnforcedException
code
- PolicyEnforcedException