Exceptions

A file contains custom exceptions

exception lightdb.exceptions.Error[source]

Bases: Exception

Base class for all errors related to the database models

exception lightdb.exceptions.FieldNotFoundError[source]

Bases: Error, ValueError

Exception raised when a field specified in the model does not exist in the table

exception lightdb.exceptions.NoArgsProvidedError[source]

Bases: Error, TypeError

Exception raised when no arguments are provided to a method that requires at least one argument

exception lightdb.exceptions.ValidationError[source]

Bases: Error, TypeError

Error raised when validation of a field fails