# `LlmCall.EventStream.Error`
[🔗](https://github.com/gilbertwong96/llm_call/blob/main/lib/llm_call/event_stream/error.ex#L1)

Raised when an event-stream body cannot be framed.

`LlmCall.EventStream.parse/2` returns messages rather than a result tuple, so a
frame with a bad checksum, an impossible length or an unknown header type raises
instead of returning an error. `LlmCall.Stream` turns this into an
`LlmCall.HTTP.Error` carrying an `:invalid_response` canonical error.

# `t`

```elixir
@type t() :: %LlmCall.EventStream.Error{__exception__: term(), message: String.t()}
```

---

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