Hi,
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”
endPart 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
Well, how would you do that in Ruby then? I think it is the same. Be aware,
I’m not saying that VB is better than Ruby…
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?
Exception handling are extremely useful for runtime errors, for example, how
can you make sure it work in the first place that a remote site is
reachable?
Shannon
···
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail