#[non_exhaustive]pub enum DynamoDBErrorCode {
Show 16 variants
ResourceInUseException,
ResourceNotFoundException,
ConditionalCheckFailedException,
TransactionCanceledException,
TransactionConflictException,
TransactionInProgressException,
IdempotentParameterMismatchException,
ItemCollectionSizeLimitExceededException,
ProvisionedThroughputExceededException,
RequestLimitExceeded,
ValidationException,
SerializationException,
InternalServerError,
MissingAction,
AccessDeniedException,
UnrecognizedClientException,
}Expand description
Well-known DynamoDB error codes.
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.
ResourceInUseException
Table already exists.
ResourceNotFoundException
Table not found.
ConditionalCheckFailedException
Condition check failed.
TransactionCanceledException
Transaction canceled.
TransactionConflictException
Transaction conflict.
TransactionInProgressException
Transaction in progress.
IdempotentParameterMismatchException
Idempotent parameter mismatch.
ItemCollectionSizeLimitExceededException
Item collection size limit exceeded.
ProvisionedThroughputExceededException
Provisioned throughput exceeded.
RequestLimitExceeded
Request limit exceeded.
ValidationException
Validation error.
SerializationException
Serialization error.
InternalServerError
Internal server error.
MissingAction
Missing action.
AccessDeniedException
Access denied.
UnrecognizedClientException
Unknown operation.
Implementations§
Source§impl DynamoDBErrorCode
impl DynamoDBErrorCode
Sourcepub fn error_type(&self) -> &'static str
pub fn error_type(&self) -> &'static str
Returns the fully-qualified error type string for JSON __type field.
Sourcepub fn default_status_code(&self) -> StatusCode
pub fn default_status_code(&self) -> StatusCode
Returns the default HTTP status code for this error.
Trait Implementations§
Source§impl Clone for DynamoDBErrorCode
impl Clone for DynamoDBErrorCode
Source§fn clone(&self) -> DynamoDBErrorCode
fn clone(&self) -> DynamoDBErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynamoDBErrorCode
impl Debug for DynamoDBErrorCode
Source§impl Default for DynamoDBErrorCode
impl Default for DynamoDBErrorCode
Source§fn default() -> DynamoDBErrorCode
fn default() -> DynamoDBErrorCode
Returns the “default value” for a type. Read more
Source§impl Display for DynamoDBErrorCode
impl Display for DynamoDBErrorCode
Source§impl Hash for DynamoDBErrorCode
impl Hash for DynamoDBErrorCode
Source§impl PartialEq for DynamoDBErrorCode
impl PartialEq for DynamoDBErrorCode
impl Copy for DynamoDBErrorCode
impl Eq for DynamoDBErrorCode
impl StructuralPartialEq for DynamoDBErrorCode
Auto Trait Implementations§
impl Freeze for DynamoDBErrorCode
impl RefUnwindSafe for DynamoDBErrorCode
impl Send for DynamoDBErrorCode
impl Sync for DynamoDBErrorCode
impl Unpin for DynamoDBErrorCode
impl UnsafeUnpin for DynamoDBErrorCode
impl UnwindSafe for DynamoDBErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more