Stone.js API
    Preparing search index...

    Represents options for configuring an error.

    interface ErrorOptions {
        cause?: Error;
        code?: string;
        metadata?: unknown;
    }
    Index
    cause?: Error

    The original error that caused this error, useful for error chaining.

    code?: string

    A specific error code for identifying the error.

    metadata?: unknown

    Additional information or context about the error.