Search documentation of Plushie

# Plushie.Protocol.ProtocolVersionMismatchError exception (Plushie v0.7.2)

Copy Markdown View Source

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).

## Summary

### Types

t()

## Types

# t()

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