Reactor.Error.Internal.UnreachableError exception (reactor v0.14.0)

View Source

An error that should never happen.

Summary

Functions

Create an unreachable error.

Functions

exception(msg)

@spec exception(opts :: Keyword.t()) :: %Reactor.Error.Internal.UnreachableError{
  __exception__: true,
  bindings: term(),
  bread_crumbs: term(),
  class: term(),
  file: term(),
  line: term(),
  message: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.Reactor.Error.Internal.UnreachableError without raising it.

Keys

  • :bindings
  • :message
  • :file
  • :line

unreachable(message)

(macro)
@spec unreachable(String.t()) :: Macro.output()

Create an unreachable error.

unreachable!(message)

(macro)
@spec unreachable!(String.t()) :: Macro.output()

Bang version of unreachable/1.