# `Ltix.Errors.Invalid.InvalidContentItem`
[🔗](https://github.com/DecoyLex/ltix/blob/main/lib/ltix/errors/invalid/invalid_content_item.ex#L1)

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` (`t:non_neg_integer/0` or `nil`) - the item's position in the list, or `nil` when the items are not a list
  * `:value` (`t:term/0`) - the item, or its `"type"` when that is invalid

# `exception`

```elixir
@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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
