# `Decree.Store.UnknownEventTypeError`
[🔗](https://github.com/sparkle-space/decree/blob/v0.1.0/lib/decree/store/unknown_event_type_error.ex#L1)

Raised by a read (`read_*`, `stream_*`, `read_query`) that meets an event whose type the
event store's serializer does not know (see `c: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 `c:Decree.Store.subscribe_to_stream/4`).

# `t`

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

---

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