@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(ConstraintViolationExceptionReason reason) |
void |
setReason(String reason) |
ConstraintViolationException |
withReason(ConstraintViolationExceptionReason reason) |
ConstraintViolationException |
withReason(String reason) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ConstraintViolationException(String message)
message - Describes the error encountered.public void setReason(String reason)
reason - ConstraintViolationExceptionReasonpublic String getReason()
ConstraintViolationExceptionReasonpublic ConstraintViolationException withReason(String reason)
reason - ConstraintViolationExceptionReasonpublic void setReason(ConstraintViolationExceptionReason reason)
reason - ConstraintViolationExceptionReasonpublic ConstraintViolationException withReason(ConstraintViolationExceptionReason reason)
reason - ConstraintViolationExceptionReasonCopyright © 2017. All rights reserved.