Skip to main content
zerotal

Documentation


Documentation / zerotal / storage / DiskNotServedError

Class: DiskNotServedError

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

Thrown when a public URL is asked for a disk that has none.

A disk with no serve block and no url base is not reachable over HTTP. Handing back a path anyway produces the worst kind of failure — a link that looks right, resolves relative to whatever page embedded it, and 404s somewhere unrelated to the disk.

Extends

Constructors

Constructor

new DiskNotServedError(disk): DiskNotServedError

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

Parameters

disk

string

Returns

DiskNotServedError

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