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

An eager collection fetch exceeded its safety limit.

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

  * `:option` (`t:atom/0`) - the limit option, such as `:max_members` or `:max_results`
  * `:count` (`t:non_neg_integer/0`) - the number of entries fetched when the limit was exceeded

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ltix.Errors.Invalid.CollectionTooLarge{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  count: term(),
  max: term(),
  option: term(),
  path: term(),
  service: term(),
  spec_ref: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.Ltix.Errors.Invalid.CollectionTooLarge` without raising it.

## Keys

- :service
- :option
- :count
- :max
- :spec_ref

---

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