自己解決。

begin
while ( i < RETRY && ! result )
 i += 1
 puts "Try: " + i.to_s
 result = do_something()
end
rescue
...

なのね。
まだ文法が壊滅的だ...