Ltix.Errors.Invalid.InvalidOption exception (Ltix v0.2.0)

Copy Markdown View Source

An option passed to an Ltix function is unknown, missing, or has an invalid value.

The following fields of this exception are public and can be accessed freely.

  • :reason (atom/0 or String.t/0) - :unknown, :required, :not_configured, or a description of the invalid value

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %Ltix.Errors.Invalid.InvalidOption{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  key: term(),
  path: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  value: term(),
  vars: term()
}

Create an Elixir.Ltix.Errors.Invalid.InvalidOption without raising it.

Keys

  • :key
  • :value
  • :reason