@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, 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 - public String getReason()
public ConstraintViolationException withReason(String reason)
reason - Copyright © 2017. All rights reserved.