Skip to main content
zerotal

Documentation


Documentation / @zerotal/tenancy / TenancyNotConfiguredError

Class: TenancyNotConfiguredError

Defined in: tenancy/src/errors.ts:27

Tenancy was used before it was configured — TenancyProvider isn't registered or TenancyMiddleware ran before boot. A misconfiguration (500).

Extends

Constructors

Constructor

new TenancyNotConfiguredError(message?): TenancyNotConfiguredError

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

Parameters

message?

string = "Tenancy is not configured. Register TenancyProvider and apply TenancyMiddleware."

Returns

TenancyNotConfiguredError

Overrides

HttpError.constructor

Properties

headers?

optional headers?: Record<string, string>

Defined in: core/src/errors/HttpError.ts:15

Inherited from

HttpError.headers


code

readonly code: string

Defined in: core/src/errors/ZerotalError.ts:18

Inherited from

HttpError.code


status

readonly status: number = 500

Defined in: core/src/errors/ZerotalError.ts:19

Inherited from

HttpError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: core/src/errors/ZerotalError.ts:20

Inherited from

HttpError.context