cadrumo.application.inventory.errors module¶
Typed errors for the inventory application service.
- exception InventoryServiceInputError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorRaised when a CLI-supplied input violates the typed inventory contract.
- Parameters:
- Return type:
None
- code¶
- exception InventoryActividadNotFoundError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorRaised when an inventory lookup targets a missing actividad / year.
- Parameters:
- Return type:
None
- code¶
- exception InventoryActividadConflictError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorRaised when a create attempt collides with an existing actividad / year.
- Parameters:
- Return type:
None
- code¶
- exception InventoryClosingAuthorityConflictError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorRaised when a different immutable closing authority already exists.
This is an application repository capability error, translated by
InventoryServiceinto the registered operator-facing input error. It deliberately is not a CLI error code of its own.- Parameters:
- Return type:
None
- code¶