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

Used when an entity that not exist is referenced

# `exception`

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

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

## Keys

- :primary_key
- :resource

---

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