Source code for cadrumo.application.inventory.errors
"""Typed errors for the inventory application service."""from__future__importannotationsfrom...core.errors.hierarchyimportCadrumoError
[docs]classInventoryServiceInputError(CadrumoError):"""Raised when a CLI-supplied input violates the typed inventory contract."""
[docs]classInventoryActividadNotFoundError(CadrumoError):"""Raised when an inventory lookup targets a missing actividad / year."""
[docs]classInventoryActividadConflictError(CadrumoError):"""Raised when a create attempt collides with an existing actividad / year."""
[docs]classInventoryClosingAuthorityConflictError(CadrumoError):"""Raised when a different immutable closing authority already exists. This is an application repository capability error, translated by :class:`InventoryService` into the registered operator-facing input error. It deliberately is not a CLI error code of its own. """