Source code for cadrumo.application.ledger.persistence_ports
"""Application-owned persistence error vocabulary for ledger actions.Persistence adapters translate their substrate-specific contention failures tothis error at the ledger boundary. Ledger services consequently need noknowledge of the secure-object implementation to preserve guarded retries."""from__future__importannotationsfrom...core.errors.hierarchyimportCadrumoError
[docs]classLedgerPersistenceConflictError(CadrumoError):"""A revision-guarded ledger persistence operation lost a race."""