Enum aws_sdk_workdocs::Error
source · #[non_exhaustive]pub enum Error {
Show 26 variants
ConcurrentModificationException(ConcurrentModificationException),
ConflictingOperationException(ConflictingOperationException),
CustomMetadataLimitExceededException(CustomMetadataLimitExceededException),
DeactivatingLastSystemUserException(DeactivatingLastSystemUserException),
DocumentLockedForCommentsException(DocumentLockedForCommentsException),
DraftUploadOutOfSyncException(DraftUploadOutOfSyncException),
EntityAlreadyExistsException(EntityAlreadyExistsException),
EntityNotExistsException(EntityNotExistsException),
FailedDependencyException(FailedDependencyException),
IllegalUserStateException(IllegalUserStateException),
InvalidArgumentException(InvalidArgumentException),
InvalidCommentOperationException(InvalidCommentOperationException),
InvalidOperationException(InvalidOperationException),
InvalidPasswordException(InvalidPasswordException),
LimitExceededException(LimitExceededException),
ProhibitedStateException(ProhibitedStateException),
RequestedEntityTooLargeException(RequestedEntityTooLargeException),
ResourceAlreadyCheckedOutException(ResourceAlreadyCheckedOutException),
ServiceUnavailableException(ServiceUnavailableException),
StorageLimitExceededException(StorageLimitExceededException),
StorageLimitWillExceedException(StorageLimitWillExceedException),
TooManyLabelsException(TooManyLabelsException),
TooManySubscriptionsException(TooManySubscriptionsException),
UnauthorizedOperationException(UnauthorizedOperationException),
UnauthorizedResourceAccessException(UnauthorizedResourceAccessException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentModificationException(ConcurrentModificationException)
The resource hierarchy is changing.
ConflictingOperationException(ConflictingOperationException)
Another operation is in progress on the resource that conflicts with the current operation.
CustomMetadataLimitExceededException(CustomMetadataLimitExceededException)
The limit has been reached on the number of custom properties for the specified resource.
DeactivatingLastSystemUserException(DeactivatingLastSystemUserException)
The last user in the organization is being deactivated.
DocumentLockedForCommentsException(DocumentLockedForCommentsException)
This exception is thrown when the document is locked for comments and user tries to create or delete a comment on that document.
DraftUploadOutOfSyncException(DraftUploadOutOfSyncException)
This exception is thrown when a valid checkout ID is not presented on document version upload calls for a document that has been checked out from Web client.
EntityAlreadyExistsException(EntityAlreadyExistsException)
The resource already exists.
EntityNotExistsException(EntityNotExistsException)
The resource does not exist.
FailedDependencyException(FailedDependencyException)
The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.
IllegalUserStateException(IllegalUserStateException)
The user is undergoing transfer of ownership.
InvalidArgumentException(InvalidArgumentException)
The pagination marker or limit fields are not valid.
InvalidCommentOperationException(InvalidCommentOperationException)
The requested operation is not allowed on the specified comment object.
InvalidOperationException(InvalidOperationException)
The operation is invalid.
InvalidPasswordException(InvalidPasswordException)
The password is invalid.
LimitExceededException(LimitExceededException)
The maximum of 100,000 files and folders under the parent folder has been exceeded.
ProhibitedStateException(ProhibitedStateException)
The specified document version is not in the INITIALIZED state.
RequestedEntityTooLargeException(RequestedEntityTooLargeException)
The response is too large to return. The request must include a filter to reduce the size of the response.
ResourceAlreadyCheckedOutException(ResourceAlreadyCheckedOutException)
The resource is already checked out.
One or more of the dependencies is unavailable.
StorageLimitExceededException(StorageLimitExceededException)
The storage limit has been exceeded.
StorageLimitWillExceedException(StorageLimitWillExceedException)
The storage limit will be exceeded.
TooManyLabelsException(TooManyLabelsException)
The limit has been reached on the number of labels for the specified resource.
TooManySubscriptionsException(TooManySubscriptionsException)
You've reached the limit on the number of subscriptions for the WorkDocs instance.
The operation is not permitted.
The caller does not have access to perform the action on the resource.
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).