# `AshJsonApi.Error.InvalidField`
[🔗](https://github.com/ash-project/ash_json_api/blob/v1.6.5/lib/ash_json_api/error/invalid_field.ex#L5)

Returned when a field is requested that does not exist or is invalid

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %AshJsonApi.Error.InvalidField{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  detail: term(),
  field: term(),
  parameter?: term(),
  path: term(),
  source_parameter: term(),
  splode: term(),
  stacktrace: term(),
  type: term(),
  vars: term()
}
```

Create an `Elixir.AshJsonApi.Error.InvalidField` without raising it.

## Keys

- :type
- :field
- :parameter?
- :detail
- :source_parameter

---

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