An error from a MountFs operation, carrying a machine-readable .code (mapped from the ZenFS errno) so an app branches on .code, never on a message.

interface FsError {
    code:
        | "unknown"
        | "read-only"
        | "not-found"
        | "not-permitted"
        | "exists"
        | "not-empty"
        | "invalid-path"
        | "unavailable";
    message: string;
    name: string;
    stack?: string;
}

Hierarchy

  • Error
    • FsError

Properties

Properties

code:
    | "unknown"
    | "read-only"
    | "not-found"
    | "not-permitted"
    | "exists"
    | "not-empty"
    | "invalid-path"
    | "unavailable"
message: string
name: string
stack?: string