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

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

# `exception`

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

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

## Keys

- :type

---

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