Skip to main content

Module error

Module error 

Source
Expand description

Error model: accumulated, path-addressed issues. Accumulated, path-addressed validation errors.

FormaError carries every violated constraint from one parse call as an ordered vector of FormaIssues; each issue is addressed by a FieldPath, tagged with a stable IssueCode, and parameterized for deterministic display.

Structs§

FieldPath
Address of the field a FormaIssue refers to.
FormaError
Every constraint violated during one parse call, in declaration order (ER-1).
FormaIssue
One violated constraint: where (FieldPath), what (IssueCode), human-readable message, and structured parameters.

Enums§

IssueCode
Stable, enumerable identifiers for every builtin constraint (ER-3), plus IssueCode::Custom for consumer-defined ones.
ParamValue
Scalar parameter values carried by issues — dependency-free and ordered.
Segment
One step in a FieldPath: either an object key or an array index.

Type Aliases§

IssueParams
Ordered (key, value) pairs attached to an issue for deterministic display.
ParamKey
Key of one entry in IssueParams.