@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConstraintViolationException extends AWSOrganizationsException
Performing this operation violates a minimum or maximum value limit. For example, attempting to removing the last SCP from an OU or root, inviting or creating too many accounts to the organization, or attaching too many policies to an account, OU, or root.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ConstraintViolationException(String message)
Constructs a new ConstraintViolationException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getReason() |
void |
setReason(String reason) |
ConstraintViolationException |
withReason(String 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 ConstraintViolationException(String message)
message
- Describes the error encountered.public void setReason(String reason)
reason
- public String getReason()
public ConstraintViolationException withReason(String reason)
reason
- Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.