#
Class: ConfigErrorError thrown by searchconfig package. Parent Error for ConfigSyntaxError, ConfigUnknownLoaderError and ConfigNotFoundError
#
HierarchyError
↳ ConfigError
↳↳ ConfigSyntaxError
↳↳ ConfigUnknownLoaderError
↳↳ ConfigNotFoundError
#
Constructors#
constructor+ new ConfigError(message?
: string, originalError?
: Error, fileName?
: string): ConfigError
#
Parameters:Name | Type |
---|---|
message? | string |
originalError? | Error |
fileName? | string |
Returns: ConfigError
Defined in: src/errors.ts:11
#
Properties#
fileName• Optional
fileName: undefined | string
Defined in: src/errors.ts:11
#
message• message: string
Defined in: src/errors.ts:9
#
name• Readonly
name: string= 'ConfigError'
Defined in: src/errors.ts:8
#
originalError• Optional
originalError: undefined | Error
Defined in: src/errors.ts:10
#
stack• Optional
stack: undefined | string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:975
#
prepareStackTraceâ–ª Optional
Static
prepareStackTrace: undefined | (err
: Error, stackTraces
: CallSite[]) => any
Optional override for formatting stack traces
see
https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces
Defined in: node_modules/@types/node/globals.d.ts:11
#
stackTraceLimitâ–ª Static
stackTraceLimit: number
Defined in: node_modules/@types/node/globals.d.ts:13
#
Methods#
captureStackTraceâ–¸ Static
captureStackTrace(targetObject
: object, constructorOpt?
: Function): void
Create .stack property on a target object
#
Parameters:Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns: void
Defined in: node_modules/@types/node/globals.d.ts:4