Errors Handling
ormdantic.handler.errors.ConfigurationError
ormdantic.handler.errors.UndefinedBackReferenceError
Bases: ConfigurationError
Raised when a back reference is missing from a table.
PARAMETER | DESCRIPTION |
---|---|
table_a |
TYPE:
|
table_b |
TYPE:
|
field |
TYPE:
|
Source code in ormdantic/handler/errors.py
ormdantic.handler.errors.MismatchingBackReferenceError
Bases: ConfigurationError
Raised when a back reference is typed incorrectly.
PARAMETER | DESCRIPTION |
---|---|
table_a |
TYPE:
|
table_b |
TYPE:
|
field |
TYPE:
|
back_reference |
TYPE:
|
Source code in ormdantic/handler/errors.py
ormdantic.handler.errors.MustUnionForeignKeyError
Bases: ConfigurationError
Raised when a relation field doesn't allow for just foreign key.
PARAMETER | DESCRIPTION |
---|---|
table_a |
TYPE:
|
table_b |
TYPE:
|
field |
TYPE:
|
model_b |
TYPE:
|
pk_type |
TYPE:
|
Source code in ormdantic/handler/errors.py
ormdantic.handler.errors.TypeConversionError
Bases: ConfigurationError
Raised when a Python type fails to convert to SQL.
PARAMETER | DESCRIPTION |
---|---|
type |
TYPE:
|