@mocanvas/editor · class
declare class ValidationError extends ErrorThrown when a value does not match its validator.
rawMessage is the failure on its own ("Expected string, got undefined")
and path says where it happened; message is the two joined, as in
At shape.props.w: Expected number, got undefined.
Methods · 1
constructor(rawMessage: string, path?: readonly ValidationPathSegment[])Properties · 2
readonly path: readonly ValidationPathSegment[]readonly rawMessage: stringmocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.