Packages@g14o/events
Error handling
Validation errors, listener errors, and error routing.
Validation errors
Schema failures notify onValidationError handlers, then reject emit():
const event = new Event({ schema });
event.onValidationError((error, ctx) => {
console.error(error, ctx.name);
});Listener errors
const event = new Event<Events>({ onListenerError: "stop" });
// or "continue" (default)Register bus-level handlers with event.onError(...).