# `Figler.OptionError`
[🔗](https://github.com/open-pencil/figler/blob/v0.1.0-beta.3/lib/figler/option_error.ex#L1)

A structured error for one invalid public option.

Option validators return these values inside their operation-specific error
contract. Match on `:option` and `:code`; `:value` preserves the rejected
input for diagnostics.

# `t`

```elixir
@type t() :: %Figler.OptionError{code: atom(), option: atom(), value: term()}
```

---

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