#[non_exhaustive]
pub enum ExecuteStatementErrorKind {
ConditionalCheckFailedException(ConditionalCheckFailedException),
DuplicateItemException(DuplicateItemException),
InternalServerError(InternalServerError),
ItemCollectionSizeLimitExceededException(ItemCollectionSizeLimitExceededException),
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException),
RequestLimitExceeded(RequestLimitExceeded),
ResourceNotFoundException(ResourceNotFoundException),
TransactionConflictException(TransactionConflictException),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the ExecuteStatement
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConditionalCheckFailedException(ConditionalCheckFailedException)
A condition specified in the operation could not be evaluated.
DuplicateItemException(DuplicateItemException)
There was an attempt to insert an item with the same primary key as an item that already exists in the DynamoDB table.
InternalServerError(InternalServerError)
An error occurred on the server side.
ItemCollectionSizeLimitExceededException(ItemCollectionSizeLimitExceededException)
An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException)
Your request rate is too high. The Amazon Web Services SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to Error Retries and Exponential Backoff in the Amazon DynamoDB Developer Guide.
RequestLimitExceeded(RequestLimitExceeded)
Throughput exceeds the current throughput quota for your account. Please contact Amazon Web Services Support to request a quota increase.
ResourceNotFoundException(ResourceNotFoundException)
The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE
.
TransactionConflictException(TransactionConflictException)
Operation was rejected because there is an ongoing transaction for the item.
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.