#[non_exhaustive]
pub enum CreateCommentErrorKind {
DocumentLockedForCommentsException(DocumentLockedForCommentsException),
EntityNotExistsException(EntityNotExistsException),
FailedDependencyException(FailedDependencyException),
InvalidCommentOperationException(InvalidCommentOperationException),
ProhibitedStateException(ProhibitedStateException),
ServiceUnavailableException(ServiceUnavailableException),
UnauthorizedOperationException(UnauthorizedOperationException),
UnauthorizedResourceAccessException(UnauthorizedResourceAccessException),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the CreateComment
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
EntityNotExistsException(EntityNotExistsException)
The resource does not exist.
FailedDependencyException(FailedDependencyException)
The AWS 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.
InvalidCommentOperationException(InvalidCommentOperationException)
The requested operation is not allowed on the specified comment object.
ProhibitedStateException(ProhibitedStateException)
The specified document version is not in the INITIALIZED state.
One or more of the dependencies is unavailable.
The operation is not permitted.
The caller does not have access to perform the action on the resource.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.