Consider a situation where I have three (or more) ways of performing a calculation, each of which can fail with an exception. In order to attempt each calculation until we f
What about tracking the actions your doing...
double val; string track = string.Empty; try { track = "Calc1"; val = calc1(); track = "Calc2"; val = calc2(); track = "Calc3"; val = calc3(); } catch (Exception e3) { throw new NoCalcsWorkedException( track ); }