Interface EditorWriteError

An error from a working-tree mutation, carrying a machine-readable .code.

interface EditorWriteError {
    code:
        | "invalid-params"
        | "forbidden"
        | "unknown"
        | "not-found"
        | "exists"
        | "too-large"
        | "no-target"
        | "protected";
    message: string;
    name: string;
    stack?: string;
}

Hierarchy

  • Error
    • EditorWriteError

Properties

Properties

code:
    | "invalid-params"
    | "forbidden"
    | "unknown"
    | "not-found"
    | "exists"
    | "too-large"
    | "no-target"
    | "protected"
message: string
name: string
stack?: string