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

Copy Markdown View Source

A field given to a constructor, such as Ltix.Registration.new/1, is unknown, missing, or has an invalid value.

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

  • :field (atom/0 or list/0) - the field's name, or a list of keys for a field nested inside another, such as [:icon, :url]
  • :reason (atom/0 or String.t/0) - :unknown, :required, or a description of the invalid value

Summary

Functions

exception(args)

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

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

Keys

  • :struct
  • :field
  • :value
  • :reason
  • :spec_ref