#[non_exhaustive]pub enum Error {
ConcurrentModificationException(ConcurrentModificationException),
ConstraintViolationException(ConstraintViolationException),
InternalServiceException(InternalServiceException),
InvalidParameterException(InvalidParameterException),
PaginationTokenExpiredException(PaginationTokenExpiredException),
ThrottledException(ThrottledException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentModificationException(ConcurrentModificationException)
The target of the operation is currently being modified by a different request. Try again later.
ConstraintViolationException(ConstraintViolationException)
The request was denied because performing this operation violates a constraint.
Some of the reasons in the following list might not apply to this specific operation.
-
You must meet the prerequisites for using tag policies. For information, see Prerequisites and Permissions for Using Tag Policies in the Organizations User Guide.
-
You must enable the tag policies service principal (
tagpolicies.tag.amazonaws.com
) to integrate with Organizations For information, see EnableAWSServiceAccess. -
You must have a tag policy attached to the organization root, an OU, or an account.
InternalServiceException(InternalServiceException)
The request processing failed because of an unknown error, exception, or failure. You can retry the request.
InvalidParameterException(InvalidParameterException)
This error indicates one of the following:
-
A parameter is missing.
-
A malformed string was supplied for the request parameter.
-
An out-of-range value was supplied for the request parameter.
-
The target ID is invalid, unsupported, or doesn't exist.
-
You can't access the Amazon S3 bucket for report storage. For more information, see Additional Requirements for Organization-wide Tag Compliance Reports in the Organizations User Guide.
PaginationTokenExpiredException(PaginationTokenExpiredException)
A PaginationToken
is valid for a maximum of 15 minutes. Your request was denied because the specified PaginationToken
has expired.
ThrottledException(ThrottledException)
The request was denied to limit the frequency of submitted requests.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).