• Standard call to create an [UnknownError].

    Parameters

    • cause: unknown

      what caused the error

    • Optional stack: string

      the stack trace until the error origin

    Returns {
        cause: string;
        stack: undefined | string;
        type: "unknown-error";
    }

    • cause: string
    • stack: undefined | string
    • type: "unknown-error"

Generated using TypeDoc