erdantic.exceptions¶
ErdanticException
¶
Bases: Exception
Base class for all exceptions from erdantic library.
Source code in erdantic/exceptions.py
11 12 |
|
InvalidFieldError
¶
Bases: ValueError
, ErdanticException
Raised when an invalid field object is passed to a field adapter.
Source code in erdantic/exceptions.py
23 24 |
|
InvalidModelAdapterError
¶
Bases: ValueError
, ErdanticException
Raised when a model adapter is expected but input is not subclassing Model.
Source code in erdantic/exceptions.py
19 20 |
|
InvalidModelError
¶
Bases: ValueError
, ErdanticException
Raised when an invalid model object is passed to a model adapter.
Source code in erdantic/exceptions.py
15 16 |
|
ModelAdapterNotFoundError
¶
Bases: KeyError
, ErdanticException
Raised when specified key does not match a registered model adapter.
Source code in erdantic/exceptions.py
27 28 |
|
ModelOrModuleNotFoundError
¶
Bases: ImportError
, ErdanticException
Raised when specified fully qualified name of model class or module cannot be found.
Source code in erdantic/exceptions.py
31 32 |
|
StringForwardRefError
¶
Bases: ErdanticException
Raised when a field's type declaration is stored as a string literal and not transformed into a typing.ForwardRef object.
Source code in erdantic/exceptions.py
39 40 41 42 43 44 45 46 47 48 49 50 |
|
UnevaluatedForwardRefError
¶
Bases: ErdanticException
Raised when a field's type declaration has an unevaluated forward reference.
Source code in erdantic/exceptions.py
62 63 64 65 66 67 68 69 70 71 72 |
|
UnknownFieldError
¶
Bases: ValueError
, ErdanticException
Raised when specified field does not match a field on specified model.
Source code in erdantic/exceptions.py
84 85 |
|
UnknownModelTypeError
¶
Bases: ValueError
, ErdanticException
Raised when a given model does not match known supported class types.
Source code in erdantic/exceptions.py
88 89 90 91 92 93 94 95 96 97 |
|