PathError
MMO · 1 symbol · generated 30 Sep 2026
A json path that could not be walked to the end.
class MMO.PathError extends MMO.ReferenceError- Namespace
MMO- Extends
ReferenceError
It remembers WHERE the walk stopped, so a caller can tell the part that resolved from
the part that did not, and create the missing levels itself.Properties1
get value()- Type
*
Methods3
constructor(origin, path, errorIndex)getValidPath(join = true)| join = true | boolean | return a string rather than an array of segments |
| returns | string | Array | the leading part of the path that DID resolve |
getInvalidPath(join = true)| join = true | boolean | return a string rather than an array of segments |
| returns | string | Array | the trailing part of the path that did NOT resolve |