From 37ee8d964ff8c293c70d9b3594597621c1fabf42 Mon Sep 17 00:00:00 2001 From: AN Long Date: Thu, 30 May 2024 22:18:51 +0800 Subject: [PATCH] add more error types --- src/aiodynamo/errors.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/aiodynamo/errors.py b/src/aiodynamo/errors.py index 60eb43d..5941c55 100644 --- a/src/aiodynamo/errors.py +++ b/src/aiodynamo/errors.py @@ -186,6 +186,26 @@ class TransactionInProgress(AIODynamoError): pass +class AccessDenied(AIODynamoError): + pass + + +class IncompleteSignature(AIODynamoError): + pass + + +class MissingAuthenticationToken(AIODynamoError): + pass + + +class UnrecognizedClient(AIODynamoError): + pass + + +class SerializationException(AIODynamoError): + pass + + ERRORS = { "ResourceNotFoundException": TableNotFound, "UnknownOperationException": UnknownOperation, @@ -214,6 +234,11 @@ class TransactionInProgress(AIODynamoError): "ResourceInUseException": ResourceInUse, "IdempotentParameterMismatchException": IdempotentParameterMismatch, "TransactionInProgressException": TransactionInProgress, + "AccessDeniedException": AccessDenied, + "IncompleteSignatureException": IncompleteSignature, + "MissingAuthenticationTokenException": MissingAuthenticationToken, + "UnrecognizedClientException": UnrecognizedClient, + "SerializationException": SerializationException, }