aeat.application.export._errors module¶
Errors raised by serialize_tabular_rows() and tabular export models.
ExportFormatError rejects unsupported
ExportSerializationFormat values, while
ExportFieldError carries
TabularExportResult field and payload
invariant failures through the typed error registry.
- exception ExportFormatError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
CoreErrorRaised when an unsupported export serialization format is requested.
The tabular export pipeline is closed over the declared
ExportSerializationFormatenum members. Requesting any value outside that set violates the pipeline contract and is surfaced as this error rather than a bareValueError.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception ExportFieldError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
CoreValidationErrorRaised when a field validation invariant is violated during tabular export.
Field-level invariants (non-empty names, no duplicates, no unknown keys) are enforced before serialization. Each violation raises this error instead of a bare
ValueErrorso the failure propagates through the typed error registry and produces a structured envelope.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶