Skip to content

JsonAnswerError

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

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:287

Parameter Type
text string
cause unknown

JsonAnswerError

Error.constructor
optional cause?: unknown;

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

Error.cause

message: string;

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

Error.message

name: string;

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

Error.name

optional stack?: string;

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

Error.stack

readonly text: string;

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