# `Lightstreamer.Error`
[🔗](https://github.com/ktec/lightstreamer/blob/v0.1.0/lib/lightstreamer/error.ex#L1)

A protocol-level error reported by the Lightstreamer server.

The `:code` is surfaced verbatim from the wire (`CONERR`/`REQERR`/`END`).
Notable `CONERR` codes:

  * `1` — user/password check failed (never retried automatically)
  * `2` — the requested adapter set is unavailable
  * `5` — the server cannot accept new sessions; retry later

# `t`

```elixir
@type t() :: %Lightstreamer.Error{
  __exception__: true,
  code: integer() | nil,
  message: String.t()
}
```

---

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