Method HandleException(IExchange, Exception, CancellationToken)

Assembly: redb.Route.dll

Handles an exception using three-tier search order:

Local route handler (by ).
Global handler (registered via ).
Fallback error handler.
Walks the exception type hierarchy to find the best matching handler; throws when none matches. The same
lookup is the outermost layer of every route's error scope, so the engine does not call this method itself —
it is for a caller outside a route.

public Task HandleException(IExchange exchange, Exception exception, CancellationToken ct = default)