Base class for every schema-components error. Catch this to handle
any library error uniformly.
Forwards the optional cause to the native ES2022 Error constructor
so error.cause is wired up by the runtime and rendered correctly by
util.inspect ("Caused by: ..."). Subclasses that need a typed
cause field still get it via the platform's own Error.cause
getter.
Base class for every schema-components error. Catch this to handle any library error uniformly.
Forwards the optional
causeto the native ES2022Errorconstructor soerror.causeis wired up by the runtime and rendered correctly byutil.inspect("Caused by: ..."). Subclasses that need a typedcausefield still get it via the platform's ownError.causegetter.