Decree.Store.UnknownEventTypeError exception (decree v0.1.0)

Copy Markdown View Source

Raised by a read (read_*, stream_*, read_query) that meets an event whose type the event store's serializer does not know (see Decree.Store.Serializer.known_type?/1). Typically an event appended by a newer release of the application, read by an older one.

The error names the event's type and number, never its data. A subscription does not raise it: it holds before the event and retries until an instance that knows the type delivers it (see Decree.Store.subscribe_to_stream/4).

Summary

Types

t()

@type t() :: %Decree.Store.UnknownEventTypeError{
  __exception__: term(),
  event_number: non_neg_integer(),
  type: String.t()
}