How to skip error in reactor? At the first glance, it looks like something trivial, but it could be that you spent a few hours to puzzle it out, and you’ve got no results. Today I will show simple it is.
Let say that I have following reactor/flux stack.
We would like to execute (1) than (2), and if any error occurs in 2 we need to process (3). In short, we need to skip sideEffectAction error if any error occurs. Simple onErrorContinue would not work, because than point (3) will be omitted.
So, how can we achieve that?
Yep, that’s it. The nested onErrorReturn (1) supposed to be the most straightforward solution