Creation from ConfigElement directly:
throw new ConfigError({ ...element, reason: 'It is foo bar.' });
Readonly
fileReadonly
propertyReadonly
reason: stringReadonly
value: unknownReadonly
fileReadonly
propertyReadonly
reasonOptional
stackReadonly
valueStatic
Optional
prepareOptional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static
stackStatic
captureGenerated using TypeDoc
An error in the app configuration which exposes all details of originating ConfigElement or ConfigObjectElement.
Example
Throw an error using values from originating config element: