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

Side by Side Diff: third_party/gsutil/boto/dynamodb/exceptions.py

Issue 12042069: Scripts to download files from google storage based on sha1 sums (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Removed gsutil/tests and gsutil/docs Created 7 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 """
2 Exceptions that are specific to the dynamodb module.
3 """
4 from boto.exception import BotoServerError, BotoClientError
5 from boto.exception import DynamoDBResponseError
6
7
8 class DynamoDBExpiredTokenError(BotoServerError):
9 """
10 Raised when a DynamoDB security token expires. This is generally boto's
11 (or the user's) notice to renew their DynamoDB security tokens.
12 """
13 pass
14
15
16 class DynamoDBKeyNotFoundError(BotoClientError):
17 """
18 Raised when attempting to retrieve or interact with an item whose key
19 can't be found.
20 """
21 pass
22
23
24 class DynamoDBItemError(BotoClientError):
25 """
26 Raised when invalid parameters are passed when creating a
27 new Item in DynamoDB.
28 """
29 pass
30
31
32 class DynamoDBConditionalCheckFailedError(DynamoDBResponseError):
33 """
34 Raised when a ConditionalCheckFailedException response is received.
35 This happens when a conditional check, expressed via the expected_value
36 paramenter, fails.
37 """
38 pass
39
40
41 class DynamoDBValidationError(DynamoDBResponseError):
42 """
43 Raised when a ValidationException response is received. This happens
44 when one or more required parameter values are missing, or if the item
45 has exceeded the 64Kb size limit.
46 """
47 pass
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698