# `Xb5.EmptyError`
[🔗](https://github.com/g-andrade/xb5_elixir/blob/1.0.0/lib/xb5/empty_error.ex#L1)

Raised when an operation requires a non-empty collection but an empty one was given.

This exception is raised by functions such as `Xb5.Bag.first!/1`,
`Xb5.Set.pop_last!/1`, `Xb5.Tree.pop_first!/1`, and similar bang variants across
all three modules.

---

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