Skip to content

SandboxPathNotFoundError

Defined in: src/sandbox/errors.ts:40

Thrown by Sandbox.listFiles and Sandbox.readFile when the path does not exist, distinguishing genuine absence from permission failures (SandboxPermissionError from readFile) and transport failures (plain errors).

code is 'ENOENT', so checks written for Node fs errors also match it.

  • Error
new SandboxPathNotFoundError(path, options?): SandboxPathNotFoundError;

Defined in: src/sandbox/errors.ts:43

ParameterType
pathstring
options?ErrorOptions

SandboxPathNotFoundError

Error.constructor

readonly code: "ENOENT" = 'ENOENT';

Defined in: src/sandbox/errors.ts:41