Skip to main content
zerotal

Documentation


Documentation / zerotal / storage / PathTraversalError

Class: PathTraversalError

Defined in: packages/core/src/storage/errors.ts:28

Thrown when a requested path would escape the disk's root directory.

Extends

Constructors

Constructor

new PathTraversalError(path): PathTraversalError

Defined in: packages/core/src/storage/errors.ts:29

Parameters

path

string

Returns

PathTraversalError

Overrides

StorageError.constructor

Properties

code

readonly code: string

Defined in: packages/core/src/errors/ZerotalError.ts:18

Inherited from

StorageError.code


status

readonly status: number = 500

Defined in: packages/core/src/errors/ZerotalError.ts:19

Inherited from

StorageError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: packages/core/src/errors/ZerotalError.ts:20

Inherited from

StorageError.context