anagrapheus.timeline.errors¶
anagrapheus.timeline.errors
¶
Timeline error types.
TimelineError
¶
Bases: Exception
Base class for all timeline errors.
ConcurrencyError
¶
Bases: TimelineError
append's expected_last_seq was stale.
With one fully serialized writer this is a bug tripwire, not a coordination mechanism: two interleaved writers indicate a broken composition, not contention to be retried.
DuplicateEventType
¶
Bases: TimelineError
An event key or payload model was registered more than once.
UnknownEventType
¶
Bases: TimelineError
A payload was read whose event key has no registered model.
UpcastGap
¶
Bases: TimelineError
An upcast chain stops short of the latest registered schema version.
Raised loudly at read rather than silently decoding a stale shape.