@salesforce/core
    Preparing search index...

    Type Alias SfErrorOptions<T>

    type SfErrorOptions<T extends ErrorDataProperties = ErrorDataProperties> = {
        actions?: string[];
        cause?: unknown;
        context?: string;
        data?: T;
        exitCode?: number;
        message: string;
        name?: string;
    }

    Type Parameters

    • T extends ErrorDataProperties = ErrorDataProperties
    Index
    actions?: string[]
    cause?: unknown

    pass an Error. For convenience in catch blocks, code will check that it is, in fact, an Error

    context?: string
    data?: T
    exitCode?: number
    message: string
    name?: string