cadrumo.application.storage_management.errors module

Errors raised by the storage-management service.

StorageReclaimRefusedError is the loud half of the aggregate reclaim guard. It names only the public area and the failed preflight property.

See also

reclaim_storage_area()

The guarded operation that raises it.

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

Bases: CadrumoError

Base for refusals raised while inspecting or reclaiming the storage tree.

Parameters:
  • message (str | None)

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

  • translated_message (str | None)

Return type:

None

code
exception StorageReclaimRefusedError(area, *, entry_count, reason)[source]

Bases: StorageManagementError

Refusal to delete an area that cannot pass the derived preflight.

Parameters:
Return type:

None

property reason: str

Return the stable service reason while text rendering stays localized.

code
exception StorageReclaimUnconfirmedError(area, *, entry_count)[source]

Bases: StorageManagementError

Refusal to delete without an explicit confirmation from the caller.

The confirmation lives at the service boundary, not only on the CLI flag, so a programmatic caller gets the same guarantee the operator’s --yes buys.

Parameters:
Return type:

None

code