sake.errors#
The standard error bases which Sake implementations will be raising.
Note
These supplement python's builtin exceptions but do not replace them.
BackendError #
Bases: SakeException
, ValueError
Error that's raised when communicating with the backend fails.
This may be a sign of underlying network or database issues.
CannotDelete #
Bases: SakeException
, ValueError
Error that's raised in response to an attempt to delete an entry which can't be deleted.
This most likely reason for this to be raised would be due to an attempt to deleted a entry that's being kept alive by references without specifying to cascade references in a referential database.
ClosedClient #
Bases: SakeException
Error that's raised when an attempt to use an inactive client is made.
EntryNotFound #
Bases: SakeException
, LookupError
Error that's raised in response to an attempt to get an entry which doesn't exist.
Note
This shouldn't ever be raised by a delete method or iter method.
InvalidDataFound #
Bases: SakeException
, LookupError
Error that's raised when the retrieved data is in an unexpected format.
This may indicate that you are running different versions of a Sake implementation with the same database.
SakeException #
Bases: Exception
Base exception for the expected exceptions raised by Sake implementations.