Interface ErrorConstructor
Callable
- __call(message?: undefined | string): Error
-
Parameters
-
Optional message: undefined | string
Constructors
constructor
- new ErrorConstructor(message?: undefined | string): Error
-
Parameters
-
Optional message: undefined | string
Properties
Optional prepareStackTrace
prepare
StackTrace: undefined | ((err: Error, stackTraces: CallSite[]) => any)
prototype
stackTraceLimit
stackTraceLimit: number
Methods
captureStackTrace
- captureStackTrace(targetObject: object, constructorOpt?: Function): void
-
Parameters
-
targetObject: object
-
Optional constructorOpt: Function
Returns void
Optional override for formatting stack traces
https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces