StaticJsTaskAbortedError
Thrown when a task method is called on an aborted task, or used as the default abort reason.
Import
import { StaticJsTaskAbortedError } from "@suntime-js/core";
Extends
Error → StaticJsTaskError → StaticJsTaskAbortedError
When thrown
Thrown in two situations:
- After abort:
task.next()ortask.throw()is called on a task that was stopped viatask.abort(). - As the abort reason: When
task.abort()is called without an explicit error argument (or with a string), aStaticJsTaskAbortedErroris constructed automatically and used as the rejection/throw reason for the evaluation.