# `Continuum.Runtime.JournalError`
[🔗](https://github.com/Yyeger/Continuum/blob/main/lib/continuum/runtime/journal_error.ex#L1)

Raised by the Postgres journal adapter when a transactional write is
rejected or fails.

`reason` carries the structured rollback reason (for example
`{:lease_mismatch, ...}` or `{:run_not_active, "completed"}`), so the
engine and activity workers classify failures by pattern matching instead
of message substrings. `op` names the journal operation that failed.

# `lease_lost?`

Whether this error means the caller's run-lease authority is gone
(fencing token rotated, or the CAS write matched no row).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
