Dsxir.Errors.Invalid.Module exception (dsxir v0.2.0)

Copy Markdown

Raised when a program dispatches to an undeclared predictor name, or when a non-Dsxir.Module is supplied. The :module field carries either the static module atom (for Dsxir.Program.Source.Module) or the runtime program id binary (for Dsxir.Program.Source.RuntimeProgram).

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %Dsxir.Errors.Invalid.Module{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  module: term(),
  path: term(),
  predictor: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.Dsxir.Errors.Invalid.Module without raising it.

Keys

  • :module
  • :predictor
  • :reason