Skip to main content
zerotal

Documentation


Documentation / @zerotal/tenancy / TenantNotFoundError

Class: TenantNotFoundError

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

No tenant could be resolved from the request, or the resolved identifier doesn't match any tenant. Renders as a 404 (content-negotiated by the framework's exception handler).

Extends

Constructors

Constructor

new TenantNotFoundError(message?): TenantNotFoundError

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

Parameters

message?

string = "This account doesn’t exist."

Returns

TenantNotFoundError

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