# `Ash.Error.Query.InvalidQuery`
[🔗](https://github.com/ash-project/ash/blob/v3.27.8/lib/ash/error/query/invalid_query.ex#L5)

A generic error that can be used to add an error to a query for a specific field

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ash.Error.Query.InvalidQuery{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  field: term(),
  fields: term(),
  message: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  value: term(),
  vars: term()
}
```

Create an `Elixir.Ash.Error.Query.InvalidQuery` without raising it.

## Keys

- :field
- :fields
- :message
- :value

---

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