Exceptions¶
-
exception
Error¶ Bases:
exceptions.ExceptionThe base class of all exceptions raised by the package.
-
exception
UnknownError¶ Bases:
LowVoltage.exceptions.ErrorException raised for errors that can’t be attributed to the client, the network or the server.
You should
except Errorinstead of this one.
-
exception
ServerError¶ Bases:
LowVoltage.exceptions.ErrorException raised when the problem can be blamed on the server. Typically DynamoDB returned a 5XX status code or a response that couldn’t be decoded.
-
exception
NetworkError¶ Bases:
LowVoltage.exceptions.ErrorException raised when the problem can be blamed on the network. Connection refused, timeout, etc.
-
exception
ClientError¶ Bases:
LowVoltage.exceptions.ErrorException raised when the problem can be blamed on the client.
See bellow for specialized exceptions for some client errors.
-
exception
UnknownClientError¶ Bases:
LowVoltage.exceptions.ClientErrorException raised for errors that can be attributed to the client but are not known by the package. Typically DynamoDB returned a 4XX status code but we couldn’t match the returned type to any known client error.
You should
except ClientErrorinstead of this one.Feel free to open an issue if your
except ClientErrorclause catches anUnknownClientError. Put the exception details and we’ll add it to the package.
-
exception
BuilderError¶ Bases:
LowVoltage.exceptions.ClientErrorException raised when you make a mistake while using a builder.
For example if you call
CreateTable.project()when you don’t have an active index. OrBatchGetItem.keys()when you don’t have an active table.
-
exception
ConditionalCheckFailedException¶ Bases:
LowVoltage.exceptions.ClientErrorRaised by conditional updates when the condition is not met. See
PutItem.condition_expression(),UpdateItem.condition_expression()andDeleteItem.condition_expression().
-
exception
IncompleteSignature¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
InvalidAction¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
InvalidClientTokenId¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
InvalidParameterCombination¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
InvalidParameterValue¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
InvalidQueryParameter¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
ItemCollectionSizeLimitExceededException¶ Bases:
LowVoltage.exceptions.ClientErrorException raised when the item collection of a hash key is too large (in a table with a LSI).
-
exception
LimitExceededException¶ Bases:
LowVoltage.exceptions.ClientErrorException raised when too many tables are beeing modified at the same time. Or when there are too many tables.
-
exception
MalformedQueryString¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
MissingAction¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
MissingAuthenticationToken¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
MissingParameter¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
OptInRequired¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
ProvisionedThroughputExceededException¶ Bases:
LowVoltage.exceptions.ClientErrorException raised when the provisioned throughput is reached.
-
exception
RequestExpired¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
ResourceInUseException¶ Bases:
LowVoltage.exceptions.ClientErrorException raise when trying to modify a table that’s not in the “ACTIVE” state.
-
exception
ResourceNotFoundException¶ Bases:
LowVoltage.exceptions.ClientErrorException raised when trying to use a non-existent table.
-
exception
Throttling¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
ValidationError¶ Bases:
LowVoltage.exceptions.ClientErrorSee common errors.
-
exception
ValidationException¶ Bases:
LowVoltage.exceptions.ClientErrorException raised when the request is invalid.
-
exception
AccessDeniedException¶ Bases:
LowVoltage.exceptions.ClientErrorException not documented. Seems to be raised when credentials are valid, but the operation is not allowed by IAM policies.
-
exception
InvalidSignatureException¶ Bases:
LowVoltage.exceptions.ClientErrorException not documented. Seems to be raised when credentials are not valid.
-
exception
SerializationException¶ Bases:
LowVoltage.exceptions.ClientErrorException not documented. Seems to be raised when a number argument (passed as a string) cannot be converted to an actual number.
-
exception
UnknownOperationException¶ Bases:
LowVoltage.exceptions.ClientErrorException not documented. Seems to be raised instead of
InvalidAction.
-
exception
UnrecognizedClientException¶ Bases:
LowVoltage.exceptions.ClientErrorException not documented. Seems to be raised when using (valid) temporary credentials but an invalid token.