AutoErrorEventMiddleware emits {OriginalEventType}ErrorEvent when a handler completes with an error.
Constructor params
None.Setup with EventBus
Behavior
- Runs on completed handler results.
- If a handler errored, emits a auto event with:
event_type:{OriginalEventType}ErrorEventerror: original exceptionerror_type: exception class name
- Skips source events ending in
ErrorEventorResultEventto prevent auto recursion.