# `Ash.Error.Changes.Required`
[🔗](https://github.com/ash-project/ash/blob/v3.23.1/lib/ash/error/changes/required.ex#L5)

Used when an attribute or relationship is required

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ash.Error.Changes.Required{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  field: term(),
  path: term(),
  resource: term(),
  splode: term(),
  stacktrace: term(),
  type: term(),
  vars: term()
}
```

Create an `Elixir.Ash.Error.Changes.Required` without raising it.

## Keys

- :field
- :type
- :resource

---

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