Skip to content
providerkit
GitHub

JsonAnswerError

Defined in: core/src/types.ts:332

An answer parseJsonAnswer found no JSON in. text is the answer, cut to 2,000 characters like a provider’s error body; cause is the SyntaxError.

  • Error
new JsonAnswerError(text, cause): JsonAnswerError;

Defined in: core/src/types.ts:335

Parameter Type
text string
cause unknown

JsonAnswerError

Error.constructor
optional cause?: unknown;

Defined in: node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Error.cause

message: string;

Defined in: node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message

name: string;

Defined in: node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name

optional stack?: string;

Defined in: node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack

readonly text: string;

Defined in: core/src/types.ts:333