materia_epd.epd namespace¶
Submodules¶
materia_epd.epd.cache module¶
materia_epd.epd.extract module¶
materia_epd.epd.extraction_errors module¶
Structured errors and XML context for EPD cache extraction.
- exception materia_epd.epd.extraction_errors.EpdExtractionError(process_path: str, stage: str, message: str, process_uuid: str | None = None, xml_tag: str | None = None, xml_attributes: dict[str, str]=<factory>, xml_line: int | None = None, xml_text: str | None = None, flow_path: str | None = None, cause_type: str | None = None)[source]¶
Bases:
ExceptionRaised when a single EPD XML file cannot be extracted for the cache.
- materia_epd.epd.extraction_errors.find_element_line(xml_path: Path, elem: Element | None) int | None[source]¶
Best-effort line number lookup by scanning the source file for the element.
ElementTree does not expose sourceline; we match tag name and salient text/attributes.