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

Raised by a WebSocket stream when the session or the connection fails.

An `Enumerable` cannot return a tuple, so the canonical error is carried on the
exception and read back with `error/1`.

# `t`

```elixir
@type t() :: %LlmCall.WS.Error{__exception__: term(), error: term()}
```

# `error`

```elixir
@spec error(t()) :: term()
```

The wrapped value, usually a `%LlmCall.Error{}`.

---

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