....
while(exception instance of MyException) {
exception = (MyException)exception;
}
....
This was code (not verbatim) that was found in a production application. Please, always have a valid exit condition for your loops. And then a 2nd way to exit the loop somehow if the primary condition always reverts to true.
while(exception instance of MyException) {
exception = (MyException)exception;
}
....
This was code (not verbatim) that was found in a production application. Please, always have a valid exit condition for your loops. And then a 2nd way to exit the loop somehow if the primary condition always reverts to true.
1 comment:
Ouch!!
Post a Comment