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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EventPayloadValidationError(eventId, cause): EventPayloadValidationError;Defined in: core/src/error/error.ts:135
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
eventId |
string |
cause |
ZodError |
Returns
Section titled “Returns”EventPayloadValidationError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”eventId
Section titled “eventId”readonly eventId: string;Defined in: core/src/error/error.ts:132
issues
Section titled “issues”readonly issues: $ZodIssue[];Defined in: core/src/error/error.ts:133