I Know that iterator has 5 elements, Frist time I call method_throwsEx(sElemtent) an Exception is thrown , stack is printed and the loop ends.
Why does while ends at the frist element?
Does a loop ends when a exception is thrown?
Thans in advanced
bart zagers
Ranch Hand
Joined: Feb 05, 2003
Posts: 234
posted
0
Originally posted by Fernando Dominguez:
Does a loop ends when a exception is thrown?
Nope, the loop should not end if the exception is catched. What is the stack-trace that is printed? Are you sure it is from the exception you expect? (The code in the catch can also throw an exception)
Jaime M. Tovar
Ranch Hand
Joined: Mar 28, 2005
Posts: 133
posted
0
There are throwables that can stop a while loop even if there is a try catch clause. Do you have the stack trace so we can have the detail?
She will remember your heart when men are fairy tales in books written by rabbits.<br /> As long as there is duct tape... there is also hope.