# `Plushie.Protocol.Error`
[🔗](https://github.com/plushie-ui/plushie-elixir/blob/v0.7.2/lib/plushie/protocol/error.ex#L1)

Raised when the renderer sends a protocol message the SDK considers invalid.

This exception is for internal bridge/runtime use. Normal application code
should not need to rescue it. A raised protocol error means the SDK and
renderer are out of sync or one side emitted malformed wire data.

# `t`

```elixir
@type t() :: %Plushie.Protocol.Error{
  __exception__: true,
  data: binary(),
  format: Plushie.Protocol.format(),
  message: String.t(),
  reason: Plushie.Protocol.decode_error_reason()
}
```

---

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