cadrumo.domain.filing.errors module¶
Domain errors for the domain.filing subpackage.
Every exception inherits from CadrumoError so
callers can catch the project-wide base.
- exception ModeloDraftError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorBase class for every error raised inside
domain.filing.- Parameters:
- Return type:
None
- code¶
- exception ModeloBuilderError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
ModeloDraftErrorRaised when builder selection or execution fails.
- Parameters:
- Return type:
None
- code¶
- exception FilingValidationError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
ModeloDraftError,CoreValidationErrorRaised when a filing record is invalid.
Two distinct callers raise it.
ModeloValidatornever raises on its own — findings are returned — so this error is what a caller opting intofail_on_warninggets for a blocking finding on an otherwise well-formed draft. The schema models also raise it from their cross-field validators for a record that is structurally malformed: a provenance kind contradicting its own value, an identity that is not its own content address, or two identity Its registered ancestry includesCoreValidationErrorunder the filing error family. Pydantic model validators translate the registered failure toValueErrorat their narrow boundary, yielding apydantic.ValidationErrorfor structurally malformed records.- Parameters:
- Return type:
None
- code¶
- exception ModeloComputationError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
ModeloDraftErrorRaised when a builder cannot evaluate a formula casilla.
- Parameters:
- Return type:
None
- code¶
- exception ModeloImportError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
ModeloDraftErrorRaised when importing a filing from a justificante PDF fails.
- Parameters:
- Return type:
None
- code¶
- exception FilingExportError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
ModeloDraftErrorRaised when exporting a draft to an AEAT wire format fails.
- Parameters:
- Return type:
None
- code¶
- exception FilingExportValidationError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
FilingExportErrorRaised on invalid export field values or layouts.
Its canonical registered ancestry is
FilingExportError; any Pydantic export validator translates this registered failure toValueErrorat its narrow boundary.- Parameters:
- Return type:
None
- code¶