basalt / prisma/src / TenantPoolExhaustedError
Class: TenantPoolExhaustedError
Defined in: prisma/src/pool.ts:46
Thrown when a tenant needs a client, the pool already holds max clients, and none of them could be evicted (all leased or used within idleMs) before acquireTimeoutMs ran out. The alternative — opening one more, or disconnecting a client someone is still using — is exactly what the cap exists to prevent. Raise max to at least the number of tenants that are active at the same time.
Extends
Constructors
Constructor
> new TenantPoolExhaustedError(tenantId, max, waitedMs): TenantPoolExhaustedError
Defined in: prisma/src/pool.ts:48
Parameters
tenantId
string
max
number
waitedMs
number
Returns
TenantPoolExhaustedError
Overrides
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
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
status
> readonly status: 503 = 503
Defined in: prisma/src/pool.ts:47