OptionalfieldName: stringOptionalerrorCode: StatusOptional ReadonlyclusterReadonlycodeOptionalfieldStaticdefaultThe fallback formatter factory. This produces a limited plaintext formatter.
StaticformatterThe error formatter factory. The default formatter is replaced by Matter.js in ./Format.ts.
Node.js-style object inspection.
Node's default inspection only prevents two levels of depth which may hide critical information. It's also considerably more verbose than native matter.js formatting. We therefore offer this custom implementation.
Note that this conforms to Node's API but is not dependent on Node.
OptionalinspectionOptions: { Optionalcolors?: booleanConvert the error to formatted text.
Matter encodes errors with modern JS features including Error#cause and AggregateError#errors subfields. You can use this function to ensure all error details are presented regardless of environment.
Optionalformat: "plain" | "ansi" | "html"Optionalindents: numberStaticacceptStaticisRest...codes: Status[]Staticreject
Base class for validation errors and used when Data validation fails. Please check the provided data. We encode this as StatusResponseError that returns a ConstrainError which is suitable for most "invalid/out-of-bounds values" cases. If you can use any of the more detailed errors derived from this class please do so!