cadrumo.application.operations.errors module

Canonical application errors for supervised operations.

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

Bases: CoreValidationError

An executor attempted behavior outside its registered declaration.

Parameters:
  • message (str | None)

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

  • translated_message (str | None)

Return type:

None

code
exception OperationUnsettledError(snapshot)[source]

Bases: InternalInvariantError

Supervised execution stopped without reaching a settlement it could commit.

snapshot is 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