aeat.application.aggregation._errors module¶
Errors raised while handling aggregation and source-mesh boundaries.
Raised by pure rollup modules such as _iva_ledger,
_renta_ledger, _retenciones, _counterpart, and
_foreign_assets, and by source-mesh resolvers such as
_modelo_bindings and _oss_ioss, when aggregation constraints
or resolver ownership contracts are violated.
- exception AggregationConfigError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
CoreError,ValueErrorRaised when an aggregation service composition invariant is violated.
Inherits from
ValueErrorso pydantic field and model validators surface it throughValidationErrorwithout special handling. Inherits fromCoreErrorso it participates in the central error registry andbuild_error_envelope.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception AggregationError(message, *, context=None, suggestion=None)[source]¶
Bases:
AeatErrorBase class for financial transaction aggregation failures.
The
translated_messagefield is a translation key resolved by the internationalization system at runtime. The same key is also routed through the positionalmessage=arg sostr(exc)returns the key (rather than the empty string) for diagnostic surfaces, structured logs, and operator error envelopes that render exceptions viastr. Without this routing, every operator-facing display of an aggregation error showed the empty string.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception AggregationPeriodError(message, *, context=None, suggestion=None)[source]¶
Bases:
AggregationErrorRaised when a requested filing period cannot be parsed unambiguously.
- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception AggregationUnsupportedModeloError(message, *, context=None, suggestion=None)[source]¶
Bases:
AggregationErrorRaised when no aggregation contract is available for the requested modelo.
- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception AggregationMissingClassificationError(message, *, context=None, suggestion=None)[source]¶
Bases:
AggregationErrorRaised when in-period transactions still need business classification.
- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception AggregationCategoryCoverageError(message, *, context=None, suggestion=None)[source]¶
Bases:
AggregationErrorRaised when a business transaction lacks category or profile coverage.
- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception AggregationValidationError(message, *, context=None, suggestion=None)[source]¶
Bases:
AggregationError,CoreValidationErrorRaised on invalid aggregation payload or state.
Inherits from CoreValidationError (which itself inherits from CoreError and ValueError) to participate in the shared CoreValidationError catch surface and remain compatible with pydantic field validators.
- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- t(message)[source]¶
Build a multilingual
core.i18n.Translatablemessage payload.- Parameters:
message (
str) – The translation key.- Return type:
- Returns:
A
core.i18n.Translatablemarker for the key.