• Creates a [IOError] for a faulty read operation.

    Parameters

    • cause: string

      what caused the read error

    • Optional stack: string

      the stack trace until the error origin

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

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

Generated using TypeDoc