Interface WorkerError<Data>

Worker error.

interface WorkerError<Data> {
    data?: Data;
    error?: Error;
    message: string;
    name?: string;
    stack?: string;
}

Type Parameters

  • Data = unknown

    Type of data sent to the worker triggering an error. This can only be structured-cloneable data.

Properties

data?: Data

Data triggering the error.

error?: Error

Error object.

message: string

Error message.

name?: string

Task function name triggering the error.

stack?: string

Error stack trace.