Is there a way to keep looping in a try catch until the exception is fixed?
For example:
try{
//something
}
catch(SomeException e){
//display error message 'an exception occurred try again'
//go back to try statement
}
After writing out the above pseudocode, I thought of a possible solution, although I think it going to be frowned upon...would a GOTO statement be okay for this case, if there is no other way? I have never used one and have been taught to stay away from it as much as possible...but this actually seems a case where it can be used. If there is a better way, then please shine some light onto me.