Skip to content

basalt / tenancy/src / InvalidTenantIdError

Class: InvalidTenantIdError ​

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

A tenant id that does not match the configured grammar (by default TENANT_ID_PATTERN). 400: the id came from the caller, and a different id is the fix.

Extends ​

Constructors ​

Constructor ​

> new InvalidTenantIdError(id): InvalidTenantIdError

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

Parameters ​

id ​

unknown

Returns ​

InvalidTenantIdError

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: tenancy/src/tenant.ts:154

Released under the MIT License.