Skip to content

odmantic.exceptions

odmantic.exceptions.BaseEngineException

Base Exception raised by the engine while operating with the database.

odmantic.exceptions.DocumentNotFoundError

The targetted document has not been found by the engine.

Attributes:

Name Type Description
instance Model

the instance that has not been found

odmantic.exceptions.DocumentParsingError

Unable to parse the document into an instance.

Inherits from the ValidationError defined by Pydantic.

Attributes:

Name Type Description
model Union[Type[Model],Type[EmbeddedModel]]

model which could not be instanciated