# `AshVault.Errors.KeyNotFound`
[🔗](https://github.com/jakeschurch/ash_vault/blob/main/lib/ash_vault/errors.ex#L159)

Raised when the key provider has no key for the requested scope and version,
and no tombstone recording that it was destroyed.

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %AshVault.Errors.KeyNotFound{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  key_version: term(),
  path: term(),
  scope: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.AshVault.Errors.KeyNotFound` without raising it.

## Keys

- :scope
- :key_version

---

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