Skip to main content

Class: NoProviderError

Defined in: packages/client/src/errors.ts:11

No provider can serve the request right now. reasons says why, per provider.

Extends​

Constructors​

Constructor​

new NoProviderError(needs, reasons, choices?): NoProviderError

Defined in: packages/client/src/errors.ts:12

Parameters​

needs​

Capability[]

reasons​

object[]

choices?​

string[] = []

Providers that could answer once the visitor picks one instead of their own AI (ai.chooseInstead(id)).

Returns​

NoProviderError

Overrides​

LeuriaError.constructor

Properties​

cause?​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from​

LeuriaError.cause


choices​

readonly choices: string[] = []

Defined in: packages/client/src/errors.ts:16

Providers that could answer once the visitor picks one instead of their own AI (ai.chooseInstead(id)).


message​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from​

LeuriaError.message


name​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from​

LeuriaError.name


needs​

readonly needs: Capability[]

Defined in: packages/client/src/errors.ts:13


reasons​

readonly reasons: object[]

Defined in: packages/client/src/errors.ts:14

id​

id: string

label​

label: string

reason​

reason: string

state​

state: ProviderState


stack?​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from​

LeuriaError.stack

Accessors​

actionable​

Get Signature​

get actionable(): string | undefined

Defined in: packages/client/src/errors.ts:27

A provider that would work after connect() (a click), if any.

Returns​

string | undefined