Feature: add ExceptionMiddleware to handle processing exceptions #1576
Labels
Core
Issues related to core FastStream functionality and affects to all brokers
enhancement
New feature or request
good first issue
Good for newcomers
We should provide users with a suitable mechanism to handle and process application exceptions like FastAPI does
I think the best way to make such mechanism suitable and flexable in the same time - implement it via special built-in middleware like in the following example:
Register handlers by constuctor:
And register handlers by decorator:
The text was updated successfully, but these errors were encountered: