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

Raised when the renderer's advertised protocol version differs from
the version the SDK was built against.

The bridge stops on this condition so the app observes a clean
shutdown with structured context instead of a raw tuple in a
GenServer `:stop` reason.

## Fields

  * `:expected` - protocol version the SDK was built for.
  * `:got` - protocol version the renderer advertised (may be `nil`
    when the renderer sent no version).

# `t`

```elixir
@type t() :: %Plushie.Protocol.ProtocolVersionMismatchError{
  __exception__: true,
  expected: non_neg_integer(),
  got: non_neg_integer() | nil,
  message: String.t()
}
```

---

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