OLD | NEW |
(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 |
OLD | NEW |