Theo Docs
TheoKitTheoKit-SDKTheoUITheo PaaS
API reference

CredentialPoolExhaustedError

Thrown when every credential in a per-provider pool is in cooldown

CredentialPoolExhaustedError

Auto-generated from TypeDoc on each build. Edit the JSDoc in packages/sdk/src/ to change this page.

Thrown when every credential in a per-provider pool is in cooldown and no healthy key is available (ADR D133). The caller's import("./internal/llm/fallback-client.js").FallbackLlmClient catches this and tries the next provider in the fallback chain.

metadata.nextRetryAt (epoch ms) tells callers when the soonest pool entry resumes — useful for manual retry scheduling.

Signature

class CredentialPoolExhaustedError {
  captureStackTrace(...): ...
  prepareStackTrace(...): ...
}

Kind

class

Source

packages/sdk/src/errors.ts:272

On this page