-
Notifications
You must be signed in to change notification settings - Fork 27
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
Uncaught Exception handling #93
Comments
Hi @OrH 👋 To be honest, I don't know – the code you mentioned was not originally written by us, so we can only speculate. Theoretically, I'd say, let's change this. However, we have taken over the code, but do not yet feel confident enough to be able to foresee which changes in other places / repos this might need. So, it's probably better to defer this a little bit… sorry that I don't have any better news for now 😞 |
Hey @goloroden 👋 Thanks for the quick response. I see. I of course understand that it would probably be better to defer a bit and validate, I don't want to do a change that will break it for others. Tagging @adrai here, maybe he will have the time to take a look and approve 😊 |
@OrH If I remember correctly, all these if this is not how you would expect it, I would recommend it to change it in a major version... (cc @robinfehr) Is there any particular problem why this disturbs you now @OrH ? |
Hey @adrai , Thanks for responding! I understand the reason to "punish" the developer, and in our case, an error was actually caused because of a developer mistake but we still don't want it to get "outside" the handling and manage it by rejecting or acking the message in the queue and this can only be done by doing the callback and letting the handler get and handle the error (otherwise we don't have a context). We also use a It is a good way to divide between errors like that and BuisnessRuleErrors, but for now, I can't see another way how not to get the service "stuck" in cases like these and our usage. (This also regarding domain commands handling which does the same if I'm not mistaken) WDYT? P.S |
As I'm not using it anymore, I'm probably the wrong person to ask 😉 I just know this was introduced on purpose 🤷♂️ So the community needs to decide 😁 |
😄 Got it! Great luck to you with your other path! 🙏 🚀 |
Hey,
Is there a specific reason for emitting
uncaughtException
to the process instead of returning as an error in the callback?https://github.com/thenativeweb/node-cqrs-eventdenormalizer/blob/master/lib/definitions/viewBuilder.js#L94
Thanks!
The text was updated successfully, but these errors were encountered: