Dsxir.Errors.Runtime.PredicateError exception (dsxir v0.3.0)

Copy Markdown

Raised when a guard predicate fails at runtime (type mismatch slipping past static checking, missing field, etc.).

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %Dsxir.Errors.Runtime.PredicateError{
  __exception__: true,
  ast: term(),
  bread_crumbs: term(),
  class: term(),
  env: term(),
  node: term(),
  path: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.Dsxir.Errors.Runtime.PredicateError without raising it.

Keys

  • :node
  • :ast
  • :env
  • :reason