Skip to content

JsonValidationError

Defined in: src/errors.ts:85

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

Creates a new JsonValidationError.

| Parameter | Type | Description | | --------- | -------- | ----------------------------------------------- | | message | string | Error message describing the validation failure |

JsonValidationError

Error.constructor