cadrumo.application.inventory.errors module

Typed errors for the inventory application service.

exception InventoryServiceInputError(message=None, *, context=None, translated_message=None)[source]

Bases: CadrumoError

Raised when a CLI-supplied input violates the typed inventory contract.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code
exception InventoryActividadNotFoundError(message=None, *, context=None, translated_message=None)[source]

Bases: CadrumoError

Raised when an inventory lookup targets a missing actividad / year.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code
exception InventoryActividadConflictError(message=None, *, context=None, translated_message=None)[source]

Bases: CadrumoError

Raised when a create attempt collides with an existing actividad / year.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code
exception InventoryClosingAuthorityConflictError(message=None, *, context=None, translated_message=None)[source]

Bases: CadrumoError

Raised when a different immutable closing authority already exists.

This is an application repository capability error, translated by InventoryService into the registered operator-facing input error. It deliberately is not a CLI error code of its own.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code