Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/boto/dynamodb/exceptions.py @ 2:6af9afd405e9 draft
"planemo upload commit 0a63dd5f4d38a1f6944587f52a8cd79874177fc1"
author | shellac |
---|---|
date | Thu, 14 May 2020 14:56:58 -0400 |
parents | 26e78fe6e8c4 |
children |
comparison
equal
deleted
inserted
replaced
1:75ca89e9b81c | 2:6af9afd405e9 |
---|---|
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 DynamoDBNumberError(BotoClientError): | |
33 """ | |
34 Raised in the event of incompatible numeric type casting. | |
35 """ | |
36 pass | |
37 | |
38 | |
39 class DynamoDBConditionalCheckFailedError(DynamoDBResponseError): | |
40 """ | |
41 Raised when a ConditionalCheckFailedException response is received. | |
42 This happens when a conditional check, expressed via the expected_value | |
43 paramenter, fails. | |
44 """ | |
45 pass | |
46 | |
47 | |
48 class DynamoDBValidationError(DynamoDBResponseError): | |
49 """ | |
50 Raised when a ValidationException response is received. This happens | |
51 when one or more required parameter values are missing, or if the item | |
52 has exceeded the 64Kb size limit. | |
53 """ | |
54 pass | |
55 | |
56 | |
57 class DynamoDBThroughputExceededError(DynamoDBResponseError): | |
58 """ | |
59 Raised when the provisioned throughput has been exceeded. | |
60 Normally, when provisioned throughput is exceeded the operation | |
61 is retried. If the retries are exhausted then this exception | |
62 will be raised. | |
63 """ | |
64 pass |