Skip to main content

Documentation Index

Fetch the complete documentation index at: https://abxbus.archivebox.io/llms.txt

Use this file to discover all available pages before exploring further.

AutoErrorEventMiddleware emits {OriginalEventType}ErrorEvent when a handler completes with an error.

Constructor params

None.

Setup with EventBus

from abxbus import EventBus
from abxbus.middlewares import AutoErrorEventMiddleware

bus = EventBus(
    name='AppBus',
    middlewares=[AutoErrorEventMiddleware()],
)

Behavior

  • Runs on completed handler results.
  • If a handler errored, emits an auto event with:
    • event_type: {OriginalEventType}ErrorEvent
    • error: original exception
    • error_type: exception class name
  • Skips source events ending in ErrorEvent or ResultEvent to prevent auto recursion.