interface ErrnoError
extends Error

Minimal shape of a Node system error, declared locally so this module stays runtime-free.

Properties

optional
code: string

The symbolic error code, e.g. ENOENT. What isErrno matches on.

optional
errno: number

The negated platform errno number.

optional
path: string

The path the failing call was operating on, when the syscall takes one.

optional
syscall: string

The syscall that failed, e.g. open.

Usage

import { type ErrnoError } from "lib/result/index.ts";