PB.AdapterError exception (PB v0.1.0)

Copy Markdown View Source

An adapter to_proto/from_proto callback returned {:error, reason} or raised. :fqn names the message, :direction is :to_proto or :from_proto, and :reason carries the callback's reason. See PB.Error.

Summary

Types

t()

@type t() :: %PB.AdapterError{
  __exception__: true,
  direction: :to_proto | :from_proto | nil,
  fqn: atom() | nil,
  message_name: atom() | nil,
  operation: PB.Error.operation() | nil,
  path: [PB.Error.path_element()],
  reason: term()
}