Closed Saro-DA closed 3 years ago
@Saro-DA, hello and thanks for using library! If I understand your question correctly, you need:
If so, my recommendations:
this.rmqService.notify(“errorQueue”, { originalData, occurredError });
Thank you for your quick reply @AlariCode. Yes, that's the intention. However, I want to use the global error handler to catch errors especially, validation errors. In the error handler, I noticed that the original data is not visible. Also, the client to send the error to a queue is not accessible in the error handler, neither it is in the interceptors and middlewares. Is there a workaround for this?
I think there is no way to get original message into error handler right now.
Hello.
Thank you very much for this great module.
There is a scenario where I want to avoid reply-to RPC and want to put errors along with the original data into a specific error queue to be processed later.
How is this possible?