output
    Preparing search index...

    Interface ErrorHookPayload

    Payload passed to the onError handler when a workflow, activity or runtime error occurs.

    interface ErrorHookPayload {
        activityName?: string;
        error: Error;
        source: "workflow" | "activity" | "runtime";
        workflowName?: string;
    }
    Index

    Properties

    activityName?: string

    Name of the activity, when the error is from an activity.

    error: Error

    The error thrown.

    source: "workflow" | "activity" | "runtime"

    Origin of the error: workflow execution, activity execution, or runtime.

    workflowName?: string

    Name of the workflow, when the error is scoped to a workflow or activity.