# `Schooner.Primitive.Error`
[🔗](https://github.com/ausimian/schooner/blob/1.1.0/lib/schooner/primitive/error.ex#L1)

Exception raised by built-in primitives for domain-specific failures:
type errors, division by zero, out-of-range indices and sizes,
improper lists, and results Schooner cannot represent.

Kept distinct from `Schooner.Eval.Error` because primitives report a
different vocabulary of failures than the evaluator. Tests can match
on `:reason` without coupling to the message wording.

---

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