Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / storage / PathTraversalError

Class: PathTraversalError

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

Parameters

path

string

Returns

PathTraversalError

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