Skip to content

basalt / drives/src / DriveRateLimitedError

Class: DriveRateLimitedError ​

Defined in: drives/src/errors.ts:101

The provider asked us to slow down. retryAfterMs is its own hint when it gave one.

Extends ​

Constructors ​

Constructor ​

> new DriveRateLimitedError(retryAfterMs, provider): DriveRateLimitedError

Defined in: drives/src/errors.ts:103

Parameters ​

retryAfterMs ​

number | undefined

provider ​

string

Returns ​

DriveRateLimitedError

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


retryAfterMs ​

> readonly retryAfterMs: number | undefined

Defined in: drives/src/errors.ts:104


status ​

> readonly status: 429 = 429

Defined in: drives/src/errors.ts:102

Released under the MIT License.