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

Option failure: the caller passed options the API does not accept, a known
option carried an invalid value, or options were not a keyword list. See
`PB.Error` for the error model.

# `kind`

```elixir
@type kind() :: :unknown_options | :invalid_option | :invalid_options
```

Which option failure this is.

# `t`

```elixir
@type t() :: %PB.OptionError{
  __exception__: term(),
  kind: kind() | nil,
  message_name: atom() | nil,
  operation: PB.Error.operation() | nil,
  option: term(),
  options: term(),
  reason: term(),
  value: term()
}
```

---

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