cadrumo.application.operations.errors module¶
Canonical application errors for supervised operations.
- exception OperationDeclarationError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CoreValidationErrorAn executor attempted behavior outside its registered declaration.
- Parameters:
- Return type:
None
- code¶
- exception OperationUnsettledError(snapshot)[source]¶
Bases:
InternalInvariantErrorSupervised execution stopped without reaching a settlement it could commit.
snapshotis the journal’s state when the failure was observed; the stopping error is chained as the cause. The operation is left for owner recovery rather than settled with a claim the supervisor cannot prove.- Parameters:
snapshot (OperationPersistedSnapshot)
- Return type:
None
- code¶