Skip to main content

Module error

Module error 

Source
Expand description

Structured, positioned errors for question-spec authoring.

Every error carries a machine-readable SpecErrorKind, a document path (ErrorPath, rendered JSON-pointer-style, e.g. /questions/tone/criteria/2), and for text-syntax errors a 1-based line/column. Authors of question specs need no Rust, capnp, or Arrow knowledge: the path points at the offending element of their YAML/JSON document and the message says what rule was violated.

Structs§

ErrorPath
A position inside an authored document: a sequence of mapping keys and array indices.
SpecError
A single positioned authoring error.

Enums§

SpecErrorKind
Machine-readable category of an authoring/validation failure.