From: Peter Hickman Date: 2002-12-06T22:01:58+09:00 Subject: Re: on error resume next Shannon Fang wrote: > I can't express how I feel :( The code below is just ONE of its usage, > something else in my mind is: > > begin > # do whatever you want to do > rescue Error A > #fix error > retry > rescue Error B > resume next > rescue > printe "I can't fix your error" > end Part of the problem here is that what happens if the magic line of code call #fix error didn't work. You would just go into a loop. If you can fix an error then why dont you do some checks upfront to make sure it is going to work in the first place? In your example you do not need to rescue Error B as the third rescue will catch the error and then the program will carry on after the end and execute the next available statement.