Skip to content

basalt / tenancy/src / TenantNotReadyError

Class: TenantNotReadyError ​

Defined in: tenancy/src/tenant.ts:272

The request resolved to a tenant whose storage is not ready yet (provisioning), no longer usable (deleting) or never finished (failed). 503 rather than 404: the tenant exists, it is simply not serving — and 503 is the status a client may retry.

Extends ​

Constructors ​

Constructor ​

> new TenantNotReadyError(id, status): TenantNotReadyError

Defined in: tenancy/src/tenant.ts:274

Parameters ​

id ​

string

status ​

TenantStatus

Returns ​

TenantNotReadyError

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: 503 = 503

Defined in: tenancy/src/tenant.ts:273

Released under the MIT License.