| Index: third_party/gsutil/boto/dynamodb/exceptions.py
|
| diff --git a/third_party/gsutil/boto/dynamodb/exceptions.py b/third_party/gsutil/boto/dynamodb/exceptions.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..10779b271a01530321f527c0986dba69cc24e838
|
| --- /dev/null
|
| +++ b/third_party/gsutil/boto/dynamodb/exceptions.py
|
| @@ -0,0 +1,47 @@
|
| +"""
|
| +Exceptions that are specific to the dynamodb module.
|
| +"""
|
| +from boto.exception import BotoServerError, BotoClientError
|
| +from boto.exception import DynamoDBResponseError
|
| +
|
| +
|
| +class DynamoDBExpiredTokenError(BotoServerError):
|
| + """
|
| + Raised when a DynamoDB security token expires. This is generally boto's
|
| + (or the user's) notice to renew their DynamoDB security tokens.
|
| + """
|
| + pass
|
| +
|
| +
|
| +class DynamoDBKeyNotFoundError(BotoClientError):
|
| + """
|
| + Raised when attempting to retrieve or interact with an item whose key
|
| + can't be found.
|
| + """
|
| + pass
|
| +
|
| +
|
| +class DynamoDBItemError(BotoClientError):
|
| + """
|
| + Raised when invalid parameters are passed when creating a
|
| + new Item in DynamoDB.
|
| + """
|
| + 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
|
|
|