aeat.application.verification._errors module

Error hierarchy for the calculation-verification subpackage.

Defines VerificationError, the base exception for unrecoverable verification failures rooted at aeat.core.errors.AeatError. Ordinary discrepancies between printed and computed values are not exceptions — they are encoded in aeat.application.verification.VerificationVerdict.

exception VerificationError(message=None, *, context=None, suggestion=None, translated_message=None)[source]

Bases: AeatError

Raised on catastrophic verification failures.

Reserved for unrecoverable conditions (corrupt registry data, broken engine contract, missing core dependency). Discrepancies between the printed casilla values and the engine-derived values are not exceptions; they surface as aeat.application.verification.ClassifiedDiscrepancy entries on the verdict.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • suggestion (str | None)

  • translated_message (str | None)

Return type:

None

code: ClassVar[ErrorCode]