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
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