Skip to content

SandboxIsADirectoryError

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

Thrown by Sandbox.readFile when the path is a directory.

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

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

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

ParameterType
pathstring
options?ErrorOptions

SandboxIsADirectoryError

Error.constructor

readonly code: "EISDIR" = 'EISDIR';

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