cadrumo.domain.contribuyente.errors module¶
Domain errors for the contribuyente tax-residence profile.
Defines TaxResidenceProfileError and its concrete failures surfaced
to RENTA verification. The inventory ledger error hierarchy lives with its
records in domain.contribuyente.inventory. Every class derives from
core.errors.hierarchy.CadrumoError so the shared error-code registration hook
applies.
- exception TaxResidenceProfileError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorBase class for tax-residence profile failures.
Concrete subclasses (
ProfileNotConfiguredError,ForalRegimeError) carry their own translated messages and suggestions; this base type exists only so callers can catch the family with a singleexceptclause.- Parameters:
- Return type:
None
- code¶
- exception ProfileNotConfiguredError[source]¶
Bases:
TaxResidenceProfileErrorRaised when RENTA verification needs a tax-residence profile.
- Return type:
None
- code¶
- exception ForalRegimeError(value)[source]¶
Bases:
TaxResidenceProfileErrorRaised when the user selects a foral regime not modelled by this profile.
- Variables:
value – The foral CCAA identifier supplied by the caller.
- Parameters:
value (str)
- Return type:
None
- code¶
- exception ProfileValidationError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
TaxResidenceProfileErrorRaised when profile records violate state or shape invariants.
Its canonical registered ancestry is
TaxResidenceProfileError. Pydantic validators translate this registered failure toValueErrorat their narrow boundary.- Parameters:
- Return type:
None
- code¶