Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / storage / StorageRootEscapeError

Class: StorageRootEscapeError

Defined in: 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: storage/errors.ts:79

Parameters

path

string

root

string

what

string

Returns

StorageRootEscapeError

Overrides

StorageError.constructor

Properties

code

readonly code: string

Defined in: errors/ZerotalError.ts:18

Inherited from

StorageError.code


status

readonly status: number = 500

Defined in: errors/ZerotalError.ts:19

Inherited from

StorageError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: errors/ZerotalError.ts:20

Inherited from

StorageError.context