odmantic.exceptions
Bases: Exception
Base Exception raised by the engine while operating with the database.
Source code in odmantic/exceptions.py
14 15 16 17 18 19 |
|
Bases: BaseEngineException
The targetted document has not been found by the engine.
Attributes:
Name | Type | Description |
---|---|---|
instance |
Model
|
the instance that has not been found |
Source code in odmantic/exceptions.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
Bases: ValueError
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 |
Source code in odmantic/exceptions.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
Bases: BaseEngineException
The targetted document is duplicated according to a unique index.
Attributes:
Name | Type | Description |
---|---|---|
instance |
Model
|
the instance that has not been found |
driver_error |
the original driver error |
Source code in odmantic/exceptions.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|