Skip to content

Commit

Permalink
Merge pull request #186 from aisk/more-errors
Browse files Browse the repository at this point in the history
add more error types
  • Loading branch information
ojii authored Jul 13, 2024
2 parents 8a34c0d + 37ee8d9 commit f7ebd0c
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 f7ebd0c

Please sign in to comment.