Documentation / @agentick/sandbox / SandboxAccessError
Class: SandboxAccessError ​
Defined in: errors.ts:9
Sandbox Access Error
Thrown when a file operation targets a path outside the sandbox workspace and allowed mounts. Carries metadata for upstream recovery (confirmation prompt → mount/allow → retry).
Extends ​
Error
Constructors ​
Constructor ​
new SandboxAccessError(
requestedPath,resolvedPath,mode):SandboxAccessError
Defined in: errors.ts:12
Parameters ​
requestedPath ​
string
resolvedPath ​
string
mode ​
"read" | "write"
Returns ​
SandboxAccessError
Overrides ​
Error.constructor
Properties ​
mode ​
readonlymode:"read"|"write"
Defined in: errors.ts:15
name ​
readonlyname:"SandboxAccessError"="SandboxAccessError"
Defined in: errors.ts:10
Overrides ​
Error.name
recover()? ​
optionalrecover: (always) =>Promise<void| () =>void>
Defined in: errors.ts:25
Attached by the sandbox implementation after catching. Adds a mount for the parent directory of the resolved path. Returns a cleanup function if the allow is temporary (!always).
Parameters ​
always ​
boolean
Returns ​
Promise<void | () => void>
requestedPath ​
readonlyrequestedPath:string
Defined in: errors.ts:13
resolvedPath ​
readonlyresolvedPath:string
Defined in: errors.ts:14