Plushie.Protocol.Error exception (Plushie v0.6.0)

Copy Markdown View Source

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.

Summary

Types

t()

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