# `AshHooks.Errors.Invalid.KeyKindMismatch`
[🔗](https://github.com/baselabs/ash_hooks/blob/v3.3.0/lib/ash_hooks/errors/invalid/key_kind_mismatch.ex#L1)

A custody key or pinned public key has a kind that cannot perform the requested operation.
This is a final configuration fault. Telemetry reason: `:key_kind_mismatch`.

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %AshHooks.Errors.Invalid.KeyKindMismatch{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.AshHooks.Errors.Invalid.KeyKindMismatch` without raising it.

## Keys

---

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