index.ListrError
The internal error handling mechanism..
Name | Type |
---|---|
Ctx |
extends ListrContext = ListrContext |
-
Error
↳
ListrError
▸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Name | Type |
---|---|
targetObject |
object |
constructorOpt? |
Function |
void
Error.captureStackTrace
node_modules/@types/node/globals.d.ts:4
▪ Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
▸ (err
, stackTraces
): any
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Name | Type |
---|---|
err |
Error |
stackTraces |
CallSite [] |
any
Error.prepareStackTrace
node_modules/@types/node/globals.d.ts:11
▪ Static
stackTraceLimit: number
Error.stackTraceLimit
node_modules/@types/node/globals.d.ts:13
• name: string
Error.name
node_modules/typescript/lib/lib.es5.d.ts:1053
• message: string
Error.message
node_modules/typescript/lib/lib.es5.d.ts:1054
• Optional
stack: string
Error.stack
node_modules/typescript/lib/lib.es5.d.ts:1055
• path: string
src/interfaces/listr-error.interface.ts:8
• ctx: Ctx
src/interfaces/listr-error.interface.ts:9
• error: Error
src/interfaces/listr-error.interface.ts:11
• type: ListrErrorTypes
src/interfaces/listr-error.interface.ts:11
• task: ListrTaskObject
<Ctx
, typeof ListrRenderer
>
src/interfaces/listr-error.interface.ts:11
• new ListrError<Ctx
>(error
, type
, task
)
Name | Type |
---|---|
Ctx |
extends unknown = any |
Name | Type |
---|---|
error |
Error |
type |
ListrErrorTypes |
task |
ListrTaskObject <Ctx , typeof ListrRenderer > |
Error.constructor
src/interfaces/listr-error.interface.ts:11