Skip to content

JsonValidationError

Defined in: src/errors.ts:84

Error thrown when attempting to serialize a value that is not JSON-serializable.

This error indicates that a value contains non-serializable types such as functions, symbols, or undefined values that cannot be converted to JSON.

  • Error
new JsonValidationError(message): JsonValidationError;

Defined in: src/errors.ts:90

Creates a new JsonValidationError.

ParameterTypeDescription
messagestringError message describing the validation failure

JsonValidationError

Error.constructor