Skip to content

EventPayloadValidationError

Defined in: core/src/error/error.ts:131

Thrown by EventRegistry.publish when the published payload fails the event’s payload schema. Raised before any subscriber is notified, so a malformed occurrence is never delivered to half of them.

new EventPayloadValidationError(eventId, cause): EventPayloadValidationError;

Defined in: core/src/error/error.ts:135

Parameter Type
eventId string
cause ZodError

EventPayloadValidationError

CoreError.constructor

readonly eventId: string;

Defined in: core/src/error/error.ts:132


readonly issues: $ZodIssue[];

Defined in: core/src/error/error.ts:133