summaryrefslogtreecommitdiff
path: root/boto/dynamodb/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/dynamodb/exceptions.py')
-rw-r--r--boto/dynamodb/exceptions.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/boto/dynamodb/exceptions.py b/boto/dynamodb/exceptions.py
index ef485042..b60d5aa0 100644
--- a/boto/dynamodb/exceptions.py
+++ b/boto/dynamodb/exceptions.py
@@ -2,6 +2,7 @@
Exceptions that are specific to the dynamodb module.
"""
from boto.exception import BotoServerError, BotoClientError
+from boto.exception import DynamoDBResponseError
class DynamoDBExpiredTokenError(BotoServerError):
"""
@@ -10,6 +11,7 @@ class DynamoDBExpiredTokenError(BotoServerError):
"""
pass
+
class DynamoDBKeyNotFoundError(BotoClientError):
"""
Raised when attempting to retrieve or interact with an item whose key
@@ -17,6 +19,7 @@ class DynamoDBKeyNotFoundError(BotoClientError):
"""
pass
+
class DynamoDBItemError(BotoClientError):
"""
Raised when invalid parameters are passed when creating a
@@ -24,3 +27,19 @@ class DynamoDBItemError(BotoClientError):
"""
pass
+
+class DynamoDBConditionalCheckFailedError(DynamoDBResponseError):
+ """
+ Raised when a ConditionalCheckFailedException response is received.
+ This happens when a conditional check, expressed via the expected_value
+ paramenter, fails.
+ """
+ pass
+
+class DynamoDBValidationError(DynamoDBResponseError):
+ """
+ Raised when a ValidationException response is received. This happens
+ when one or more required parameter values are missing, or if the item
+ has exceeded the 64Kb size limit.
+ """
+ pass