aeat.application.filing.errors module¶
Application-layer errors for application.filing.
The domain filing package owns record, import, export, amendment, and builder
errors. This module adds the application-specific root used by persistence and
summary helpers while preserving the domain.filing.ModeloDraftError
catch boundary.
See also
domain.filing._errorsDomain filing error hierarchy raised by draft, import, export, and amendment records.
application.filing._calculateCalculation-summary surface that raises
ModeloCalculateErrorfor invalid next-action invariants.application.filing._runtime_repositoryRuntime persistence helper that raises
ModeloApplicationErrorfor filing-bucket resolution failures.
- exception ModeloApplicationError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
ModeloDraftErrorBase class for errors raised by the filing application layer.
The class extends
domain.filing.ModeloDraftErrorso callers that catch the domain filing boundary still catch application-level filing failures.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception ModeloCalculateError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
ModeloApplicationError,ValueErrorRaised when calculation-summary invariants are refused.
The
ValueErrormixin keeps pydantic model validators and callers that expect validation-style failures aligned withModeloApplicationError.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶