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 ​
| Parameter | Type |
|---|---|
reason? | any |
Returns ​
TaskAbortError
Overrides ​
Error.constructor
Properties ​
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
cause? | public | unknown | - | Error.cause | node_modules/typescript/lib/lib.es2022.error.d.ts:24 |
message | public | string | - | Error.message | node_modules/typescript/lib/lib.es5.d.ts:1075 |
name | public | string | - | Error.name | node_modules/typescript/lib/lib.es5.d.ts:1074 |
reason | public | any | The reason the task was aborted, as passed to Task.abort. | - | packages/core/src/task/index.ts:31 |
stack? | public | string | - | Error.stack | node_modules/typescript/lib/lib.es5.d.ts:1076 |
Methods ​
isError() ​
staticisError(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 ​
| Parameter | Type |
|---|---|
error | unknown |
Returns ​
error is Error
Inherited from ​
Error.isError