Exceptions

All coodie exceptions inherit from CoodieError, making it easy to catch any coodie-related error with a single handler.

exception coodie.exceptions.CoodieError

Bases: Exception

Base class for all coodie exceptions.

exception coodie.exceptions.DocumentNotFound

Bases: CoodieError

Raised when a document lookup returns no results.

exception coodie.exceptions.MultipleDocumentsFound

Bases: CoodieError

Raised when a single-document lookup returns more than one result.

exception coodie.exceptions.ConfigurationError

Bases: CoodieError

Raised when coodie is not properly configured (e.g. no driver registered).

exception coodie.exceptions.InvalidQueryError

Bases: CoodieError

Raised when a query is constructed incorrectly.

exception coodie.exceptions.MigrationError

Bases: CoodieError

Raised when a migration operation fails.