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

Copy Markdown View Source

An item passed to Ltix.DeepLinking.build_response/3 is not a content item.

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

  • :index (non_neg_integer/0 or nil) - the item's position in the list, or nil when the items are not a list
  • :value (term/0) - the item, or its "type" when that is invalid

Summary

Functions

exception(args)

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

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

Keys

  • :index
  • :value
  • :reason
  • :spec_ref