Kinda.GenerationError exception (kinda v0.12.0)

Copy Markdown View Source

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.

Summary

Types

t()

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