Skip to content

basalt / storage/src / StorageStreamLengthRequiredError

Class: StorageStreamLengthRequiredError ​

Defined in: storage/src/errors.ts:135

A streaming upload needs an exact contentLength on this backend and none was given. 400: the caller chose the body.

Extends ​

Constructors ​

Constructor ​

> new StorageStreamLengthRequiredError(driver, detail): StorageStreamLengthRequiredError

Defined in: storage/src/errors.ts:137

Parameters ​

driver ​

string

detail ​

string

Returns ​

StorageStreamLengthRequiredError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

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

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 400 = 400

Defined in: storage/src/errors.ts:136

Released under the MIT License.