Skip to content

Documentation / @ripl/core / TaskAbortError

Class: TaskAbortError ​

Defined in: packages/core/src/task/index.ts:27

Error thrown when a task is aborted, carrying the abort reason.

Extends ​

  • Error

Constructors ​

Constructor ​

new TaskAbortError(reason?): TaskAbortError

Defined in: packages/core/src/task/index.ts:34

Parameters ​

ParameterType
reason?any

Returns ​

TaskAbortError

Overrides ​

Error.constructor

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
cause?publicunknown-Error.causenode_modules/typescript/lib/lib.es2022.error.d.ts:24
messagepublicstring-Error.messagenode_modules/typescript/lib/lib.es5.d.ts:1075
namepublicstring-Error.namenode_modules/typescript/lib/lib.es5.d.ts:1074
reasonpublicanyThe reason the task was aborted, as passed to Task.abort.-packages/core/src/task/index.ts:31
stack?publicstring-Error.stacknode_modules/typescript/lib/lib.es5.d.ts:1076

Methods ​

isError() ​

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:21

Indicates whether the argument provided is a built-in Error instance or not.

Parameters ​

ParameterType
errorunknown

Returns ​

error is Error

Inherited from ​

Error.isError