# `Ltix.Errors.Invalid.InvalidOption`
[🔗](https://github.com/DecoyLex/ltix/blob/main/lib/ltix/errors/invalid/invalid_option.ex#L1)

An option passed to an Ltix function is unknown, missing, or has an invalid value.

The following fields of this exception are public and can be accessed freely.

  * `:reason` (`t:atom/0` or `t:String.t/0`) - `:unknown`, `:required`, `:not_configured`, or a description of the invalid value

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ltix.Errors.Invalid.InvalidOption{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  key: term(),
  path: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  value: term(),
  vars: term()
}
```

Create an `Elixir.Ltix.Errors.Invalid.InvalidOption` without raising it.

## Keys

- :key
- :value
- :reason

---

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