Documentation / zerotal / storage / StorageRootEscapeError
Class: StorageRootEscapeError
Defined in: packages/core/src/storage/errors.ts:78
Thrown when a local disk is rooted outside the storage root.
The per-disk traversal guard stops a path escaping its disk; this stops the disk being pointed somewhere it has no business reading or writing. A misconfigured root is not a runtime edge case to degrade around — it is a config bug, and it fails at construction so it surfaces on boot rather than on the first upload.
Extends
Constructors
Constructor
new StorageRootEscapeError(
path,root,what):StorageRootEscapeError
Defined in: packages/core/src/storage/errors.ts:79
Parameters
path
string
root
string
what
string
Returns
StorageRootEscapeError
Overrides
Properties
code
readonlycode:string
Defined in: packages/core/src/errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: packages/core/src/errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: packages/core/src/errors/ZerotalError.ts:20