EventStreamNotFoundError Class
Raised when any operation references a stream id that is not currently a live stream.
unified the previously-distinct
EventStreamNotFoundError (never registered) and
EventStreamGoneError (registered then destroyed) into this
single error type. Three independent reasons fire this:
the id was never registered (no
get_or_create(id)ever ran)the id was explicitly deleted via
streams.delete(id)the id's stream was Closed and its close-clock TTL (
close_time + ttl_seconds) elapsed, causing the registry to auto-tombstone
Collapsing the two error types simplifies the developer-facing surface: either way, the right behavior is the same (subscribe to a new id, or treat this id as missing). It also stops leaking the registry's internal tombstone bookkeeping (whether an id was "previously alive" or "never seen") into the public API.
Wire-mapped to HTTP 404 Not Found.
Constructor
EventStreamNotFoundError()
Methods
| add_note |
Exception.add_note(note) – add a note to the exception |
| with_traceback |
Exception.with_traceback(tb) – set self.traceback to tb and return self. |
add_note
Exception.add_note(note) – add a note to the exception
add_note()
with_traceback
Exception.with_traceback(tb) – set self.traceback to tb and return self.
with_traceback()