I have a way like this:
public void runMethod()
{
method1();
method2();
method3();
}
I want to call this runMethod several times based on identifier. However, if, for some reason, method2 () fails, then when I call runMethod, it should execute method3 () and not try again to execute method1 () (which already successfully completed this identifier).
What would be the best way to achieve this?
Thank you very much for your help
source
share