# `PB.AdapterError`
[🔗](https://github.com/hansihe/pb_ex/blob/v0.2.0/pb/lib/pb/adapter_error.ex#L1)

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

# `t`

```elixir
@type t() :: %PB.AdapterError{
  __exception__: term(),
  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()
}
```

---

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