types
DirValidationErrors ¶
Bases: ValueError
Structure to collect record or directory validation errors.
Returned from validation functions and thrown in other contexts.
Source code in src/metador_core/packer/types.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
errors
instance-attribute
¶
errors: Dict[str, List[Any]] = errs or {}
Common type used to collect errors.
Maps path in container or directory to list of errors with that path.
The list should contain either strings or other such dicts, but Python type checkers are unable to understand recursive types.
update ¶
update(*err_objs: DirValidationErrors)
Add errors from other instances to this object.
Source code in src/metador_core/packer/types.py
30 31 32 33 34 35 36 37 38 |
|