Exceptions

exception Error

Bases: exceptions.Exception

The base class of all exceptions raised by the package.

exception UnknownError

Bases: LowVoltage.exceptions.Error

Exception raised for errors that can’t be attributed to the client, the network or the server.

You should except Error instead of this one.

exception ServerError

Bases: LowVoltage.exceptions.Error

Exception 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.Error

Exception raised when the problem can be blamed on the network. Connection refused, timeout, etc.

exception ClientError

Bases: LowVoltage.exceptions.Error

Exception raised when the problem can be blamed on the client.

See bellow for specialized exceptions for some client errors.

exception UnknownClientError

Bases: LowVoltage.exceptions.ClientError

Exception 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 ClientError instead of this one.

Feel free to open an issue if your except ClientError clause catches an UnknownClientError. Put the exception details and we’ll add it to the package.

exception BuilderError

Bases: LowVoltage.exceptions.ClientError

Exception 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. Or BatchGetItem.keys() when you don’t have an active table.

exception ConditionalCheckFailedException

Bases: LowVoltage.exceptions.ClientError

Raised by conditional updates when the condition is not met. See PutItem.condition_expression(), UpdateItem.condition_expression() and DeleteItem.condition_expression().

exception IncompleteSignature

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception InvalidAction

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception InvalidClientTokenId

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception InvalidParameterCombination

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception InvalidParameterValue

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception InvalidQueryParameter

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception ItemCollectionSizeLimitExceededException

Bases: LowVoltage.exceptions.ClientError

Exception raised when the item collection of a hash key is too large (in a table with a LSI).

exception LimitExceededException

Bases: LowVoltage.exceptions.ClientError

Exception raised when too many tables are beeing modified at the same time. Or when there are too many tables.

See the reference of the CreateTable action.

exception MalformedQueryString

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception MissingAction

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception MissingAuthenticationToken

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception MissingParameter

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception OptInRequired

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception ProvisionedThroughputExceededException

Bases: LowVoltage.exceptions.ClientError

Exception raised when the provisioned throughput is reached.

exception RequestExpired

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception ResourceInUseException

Bases: LowVoltage.exceptions.ClientError

Exception raise when trying to modify a table that’s not in the “ACTIVE” state.

exception ResourceNotFoundException

Bases: LowVoltage.exceptions.ClientError

Exception raised when trying to use a non-existent table.

exception Throttling

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception ValidationError

Bases: LowVoltage.exceptions.ClientError

See common errors.

exception ValidationException

Bases: LowVoltage.exceptions.ClientError

Exception raised when the request is invalid.

exception AccessDeniedException

Bases: LowVoltage.exceptions.ClientError

Exception not documented. Seems to be raised when credentials are valid, but the operation is not allowed by IAM policies.

exception InvalidSignatureException

Bases: LowVoltage.exceptions.ClientError

Exception not documented. Seems to be raised when credentials are not valid.

exception SerializationException

Bases: LowVoltage.exceptions.ClientError

Exception 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.ClientError

Exception not documented. Seems to be raised instead of InvalidAction.

exception UnrecognizedClientException

Bases: LowVoltage.exceptions.ClientError

Exception not documented. Seems to be raised when using (valid) temporary credentials but an invalid token.