#[non_exhaustive]
pub enum Error {
Show 36 variants AccessDeniedException(AccessDeniedException), BatchWriteException(BatchWriteException), CannotListParentOfRootException(CannotListParentOfRootException), DirectoryAlreadyExistsException(DirectoryAlreadyExistsException), DirectoryDeletedException(DirectoryDeletedException), DirectoryNotDisabledException(DirectoryNotDisabledException), DirectoryNotEnabledException(DirectoryNotEnabledException), FacetAlreadyExistsException(FacetAlreadyExistsException), FacetInUseException(FacetInUseException), FacetNotFoundException(FacetNotFoundException), FacetValidationException(FacetValidationException), IncompatibleSchemaException(IncompatibleSchemaException), IndexedAttributeMissingException(IndexedAttributeMissingException), InternalServiceException(InternalServiceException), InvalidArnException(InvalidArnException), InvalidAttachmentException(InvalidAttachmentException), InvalidFacetUpdateException(InvalidFacetUpdateException), InvalidNextTokenException(InvalidNextTokenException), InvalidRuleException(InvalidRuleException), InvalidSchemaDocException(InvalidSchemaDocException), InvalidTaggingRequestException(InvalidTaggingRequestException), LimitExceededException(LimitExceededException), LinkNameAlreadyInUseException(LinkNameAlreadyInUseException), NotIndexException(NotIndexException), NotNodeException(NotNodeException), NotPolicyException(NotPolicyException), ObjectAlreadyDetachedException(ObjectAlreadyDetachedException), ObjectNotDetachedException(ObjectNotDetachedException), ResourceNotFoundException(ResourceNotFoundException), RetryableConflictException(RetryableConflictException), SchemaAlreadyExistsException(SchemaAlreadyExistsException), SchemaAlreadyPublishedException(SchemaAlreadyPublishedException), StillContainsLinksException(StillContainsLinksException), UnsupportedIndexTypeException(UnsupportedIndexTypeException), ValidationException(ValidationException), Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

AccessDeniedException(AccessDeniedException)

Access denied or directory not found. Either you don't have permissions for this directory or the directory does not exist. Try calling ListDirectories and check your permissions.

BatchWriteException(BatchWriteException)

A BatchWrite exception has occurred.

CannotListParentOfRootException(CannotListParentOfRootException)

Cannot list the parents of a Directory root.

DirectoryAlreadyExistsException(DirectoryAlreadyExistsException)

Indicates that a Directory could not be created due to a naming conflict. Choose a different name and try again.

DirectoryDeletedException(DirectoryDeletedException)

A directory that has been deleted and to which access has been attempted. Note: The requested resource will eventually cease to exist.

DirectoryNotDisabledException(DirectoryNotDisabledException)

An operation can only operate on a disabled directory.

DirectoryNotEnabledException(DirectoryNotEnabledException)

Operations are only permitted on enabled directories.

FacetAlreadyExistsException(FacetAlreadyExistsException)

A facet with the same name already exists.

FacetInUseException(FacetInUseException)

Occurs when deleting a facet that contains an attribute that is a target to an attribute reference in a different facet.

FacetNotFoundException(FacetNotFoundException)

The specified Facet could not be found.

FacetValidationException(FacetValidationException)

The Facet that you provided was not well formed or could not be validated with the schema.

IncompatibleSchemaException(IncompatibleSchemaException)

Indicates a failure occurred while performing a check for backward compatibility between the specified schema and the schema that is currently applied to the directory.

IndexedAttributeMissingException(IndexedAttributeMissingException)

An object has been attempted to be attached to an object that does not have the appropriate attribute value.

InternalServiceException(InternalServiceException)

Indicates a problem that must be resolved by Amazon Web Services. This might be a transient error in which case you can retry your request until it succeeds. Otherwise, go to the AWS Service Health Dashboard site to see if there are any operational issues with the service.

InvalidArnException(InvalidArnException)

Indicates that the provided ARN value is not valid.

InvalidAttachmentException(InvalidAttachmentException)

Indicates that an attempt to make an attachment was invalid. For example, attaching two nodes with a link type that is not applicable to the nodes or attempting to apply a schema to a directory a second time.

InvalidFacetUpdateException(InvalidFacetUpdateException)

An attempt to modify a Facet resulted in an invalid schema exception.

InvalidNextTokenException(InvalidNextTokenException)

Indicates that the NextToken value is not valid.

InvalidRuleException(InvalidRuleException)

Occurs when any of the rule parameter keys or values are invalid.

InvalidSchemaDocException(InvalidSchemaDocException)

Indicates that the provided SchemaDoc value is not valid.

InvalidTaggingRequestException(InvalidTaggingRequestException)

Can occur for multiple reasons such as when you tag a resource that doesn’t exist or if you specify a higher number of tags for a resource than the allowed limit. Allowed limit is 50 tags per resource.

LimitExceededException(LimitExceededException)

Indicates that limits are exceeded. See Limits for more information.

LinkNameAlreadyInUseException(LinkNameAlreadyInUseException)

Indicates that a link could not be created due to a naming conflict. Choose a different name and then try again.

NotIndexException(NotIndexException)

Indicates that the requested operation can only operate on index objects.

NotNodeException(NotNodeException)

Occurs when any invalid operations are performed on an object that is not a node, such as calling ListObjectChildren for a leaf node object.

NotPolicyException(NotPolicyException)

Indicates that the requested operation can only operate on policy objects.

ObjectAlreadyDetachedException(ObjectAlreadyDetachedException)

Indicates that the object is not attached to the index.

ObjectNotDetachedException(ObjectNotDetachedException)

Indicates that the requested operation cannot be completed because the object has not been detached from the tree.

ResourceNotFoundException(ResourceNotFoundException)

The specified resource could not be found.

RetryableConflictException(RetryableConflictException)

Occurs when a conflict with a previous successful write is detected. For example, if a write operation occurs on an object and then an attempt is made to read the object using “SERIALIZABLE” consistency, this exception may result. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.

SchemaAlreadyExistsException(SchemaAlreadyExistsException)

Indicates that a schema could not be created due to a naming conflict. Please select a different name and then try again.

SchemaAlreadyPublishedException(SchemaAlreadyPublishedException)

Indicates that a schema is already published.

StillContainsLinksException(StillContainsLinksException)

The object could not be deleted because links still exist. Remove the links and then try the operation again.

UnsupportedIndexTypeException(UnsupportedIndexTypeException)

Indicates that the requested index type is not supported.

ValidationException(ValidationException)

Indicates that your request is malformed in some manner. See the exception message.

Unhandled(Box<dyn Error + Send + Sync + 'static>)

An unhandled error occurred.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more