Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: tools/telemetry/third_party/gsutil/third_party/boto/boto/dynamodb/exceptions.py

Issue 1258583006: Add gsutil 4.13 to telemetry/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo all other changes so this just add gsutil to third_party Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/gsutil/third_party/boto/boto/dynamodb/exceptions.py
diff --git a/tools/telemetry/third_party/gsutil/third_party/boto/boto/dynamodb/exceptions.py b/tools/telemetry/third_party/gsutil/third_party/boto/boto/dynamodb/exceptions.py
new file mode 100644
index 0000000000000000000000000000000000000000..12be2d72b5f5e407fd04582b3ea7e0375424e7a1
--- /dev/null
+++ b/tools/telemetry/third_party/gsutil/third_party/boto/boto/dynamodb/exceptions.py
@@ -0,0 +1,64 @@
+"""
+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 DynamoDBNumberError(BotoClientError):
+ """
+ Raised in the event of incompatible numeric type casting.
+ """
+ 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
+
+
+class DynamoDBThroughputExceededError(DynamoDBResponseError):
+ """
+ Raised when the provisioned throughput has been exceeded.
+ Normally, when provisioned throughput is exceeded the operation
+ is retried. If the retries are exhausted then this exception
+ will be raised.
+ """
+ pass

Powered by Google App Engine
This is Rietveld 408576698