Skip to content

Variable: CODES

Documentation / @wtf/platform-fs-adapter / errors / CODES

const CODES: Readonly<Record<string, FileSystemErrorName>>;

Defined in: packages/platform-fs-adapter/src/errors.ts:26

The name of the DOMException of each of Node’s codes:

CodeName
ENOENTNotFoundError
ENOTDIR, EISDIRTypeMismatchError
ENOTEMPTY, EEXIST, EINVALInvalidModificationError
EBUSY, ETXTBSYNoModificationAllowedError
EACCES, EPERM, EROFSNotAllowedError
ENOSPC, EDQUOT, EFBIGQuotaExceededError
EIONotReadableError
ELOOPInvalidStateError
ENOTSUP, EOPNOTSUPP, ENOSYS, EXDEVNotSupportedError

Any other code is an UnknownError.