Skip to content

Commit

Permalink
add more error types
Browse files Browse the repository at this point in the history
  • Loading branch information
aisk committed May 30, 2024
1 parent eb5814e commit 37ee8d9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/aiodynamo/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -214,6 +234,11 @@ class TransactionInProgress(AIODynamoError):
"ResourceInUseException": ResourceInUse,
"IdempotentParameterMismatchException": IdempotentParameterMismatch,
"TransactionInProgressException": TransactionInProgress,
"AccessDeniedException": AccessDenied,
"IncompleteSignatureException": IncompleteSignature,
"MissingAuthenticationTokenException": MissingAuthenticationToken,
"UnrecognizedClientException": UnrecognizedClient,
"SerializationException": SerializationException,
}


Expand Down

0 comments on commit 37ee8d9

Please sign in to comment.