Skip to content

Documentation / @ripl/core / TaskAbortError

Class: TaskAbortError ​

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

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:30

Parameters ​

ParameterType
reason?any

Returns ​

TaskAbortError

Overrides ​

Error.constructor

Properties ​

PropertyModifierTypeInherited fromDefined in
cause?publicunknownError.causenode_modules/typescript/lib/lib.es2022.error.d.ts:26
messagepublicstringError.messagenode_modules/typescript/lib/lib.es5.d.ts:1077
namepublicstringError.namenode_modules/typescript/lib/lib.es5.d.ts:1076
reasonpublicany-packages/core/src/task/index.ts:27
stack?publicstringError.stacknode_modules/typescript/lib/lib.es5.d.ts:1078

Methods ​

isError() ​

static isError(error): error is Error

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

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

Parameters ​

ParameterType
errorunknown

Returns ​

error is Error

Inherited from ​

Error.isError