-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle errors thrown from an EventHandler #1
Comments
Option 1
Option 2
|
I really like the second option. Simply, intuitive, the producer is often the best "person" to decide how to react to the error. 2️⃣ |
Need to check nestjs/cqrs#134 |
I see that there is already something like that https://github.com/bradsheppard/nestjs-async-cqrs |
I think we shall support community needs as well, thus how about various ways of allowing to handle errors?
1A. "global" within module for specific handlers
2A / 3A. Extending handler interface with optional (?) method that handles the error First of all we could add (1) to prevent application to crash and |
@kgajowy 1 and 1A could be the same. Like Exception Filters, the one without specified event will catch all. |
How do we want to handle this problem?
nestjs/cqrs#409
The text was updated successfully, but these errors were encountered: