I want to execute the code in the try block again after an exception is caught. Is that possible somehow?
For Eg:
try { //execute some code } catch(E
This should work:
count = 0; while (!done) { try{ //execute some code; done = true; } catch(Exception e){ // code count++; if (count > 1) { done = true; } } }