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.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SandboxIsADirectoryError(path, options?): SandboxIsADirectoryError;Defined in: src/sandbox/errors.ts:57
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
path | string |
options? | ErrorOptions |
Returns
Section titled “Returns”SandboxIsADirectoryError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”readonly code: "EISDIR" = 'EISDIR';Defined in: src/sandbox/errors.ts:55