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:
CadrumoErrorBase for refusals raised while inspecting or reclaiming the storage tree.
- Parameters:
- Return type:
None
- code¶
- exception StorageReclaimRefusedError(area, *, entry_count, reason)[source]¶
Bases:
StorageManagementErrorRefusal to delete an area that cannot pass the derived preflight.
- Parameters:
area (StorageArea)
entry_count (int)
reason (str)
- Return type:
None
- code¶
- exception StorageReclaimUnconfirmedError(area, *, entry_count)[source]¶
Bases:
StorageManagementErrorRefusal 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
--yesbuys.- Parameters:
area (StorageArea)
entry_count (int)
- Return type:
None
- code¶