"""Application-layer errors for :mod:`application.filing`.The domain filing package owns record, import, export, amendment, and buildererrors. This module adds the application-specific root used by persistence andsummary helpers while preserving the :class:`domain.filing.ModeloDraftError`catch boundary.See Also: :mod:`domain.filing._errors` Domain filing error hierarchy raised by draft, import, export, and amendment records. :mod:`application.filing._calculate` Calculation-summary surface that raises :class:`ModeloCalculateError` for invalid next-action invariants. :mod:`application.filing._runtime_repository` Runtime persistence helper that raises :class:`ModeloApplicationError` for filing-bucket resolution failures."""from__future__importannotationsfrom...domain.filingimportModeloDraftError
[docs]classModeloApplicationError(ModeloDraftError):"""Base class for errors raised by the filing application layer. The class extends :class:`domain.filing.ModeloDraftError` so callers that catch the domain filing boundary still catch application-level filing failures. """
[docs]classModeloCalculateError(ModeloApplicationError,ValueError):"""Raised when calculation-summary invariants are refused. The :class:`ValueError` mixin keeps pydantic model validators and callers that expect validation-style failures aligned with :class:`ModeloApplicationError`. """