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

A field given to a constructor, such as `Ltix.Registration.new/1`, is unknown, missing, or has an invalid value.

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

  * `:field` (`t:atom/0` or `t:list/0`) - the field's name, or a list of keys for a field nested inside another, such as `[:icon, :url]`
  * `:reason` (`t:atom/0` or `t:String.t/0`) - `:unknown`, `:required`, or a description of the invalid value

# `exception`

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

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

## Keys

- :struct
- :field
- :value
- :reason
- :spec_ref

---

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