Skip to content

SugarError

Defined in: packages/core/src/model/sugar.ts:81

A structured, path-anchored input error. Returned — never thrown — so the parser seam (U2) can convert it to a ParseError on its existing channel.

PropertyModifierTypeDescriptionDefined in
messagereadonlystringAuthor-facing description of what is wrong.packages/core/src/model/sugar.ts:83
pathreadonlystringA fragment locating the offending value relative to the sugar key (e.g. route.coordinates, locations.1.markerColor). The parser prefixes it with the source’s own path when re-anchoring.packages/core/src/model/sugar.ts:82