# `Kinda.GenerationError`
[🔗](https://github.com/beaver-lodge/kinda/blob/main/lib/kinda/error/generation.ex#L1)

The exception raised when Kinda cannot resolve or generate a declaration.

`:stage` and `:reason` are stable identifiers. `:source`, `:expected` and
`:actual` retain the values needed to diagnose malformed generator input.

# `t`

```elixir
@type t() :: %Kinda.GenerationError{
  __exception__: term(),
  actual: term(),
  expected: term(),
  message: String.t() | nil,
  reason: atom() | nil,
  source: term(),
  stage: atom() | nil
}
```

---

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