Schooner.Primitive.Error exception (schooner v1.1.0)

Copy Markdown View Source

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.