class WorkerTaskError
extends Error
Since 0.1.0

Thrown by run() when the task handler threw on the worker, or when the worker crashed while the task was in flight. Carries the remote error's serialized shape.

Constructors

WorkerTaskError(
taskModule: string,
remote: WorkerErrorShape
)

Properties

readonly
remoteName: string

The remote error's name.

readonly
optional
remoteStack: string

The remote error's stack, when the worker provided one.

readonly
taskModule: string

The task-module specifier the failing task belonged to.

Usage

import { WorkerTaskError } from "worker-pool-plugin/src/index.ts";