Thank you for the elaboration. On Tue, 14 Dec 2004 07:21:06 +0900, Jim Weirich <jim / weirichhouse.org> wrote: > > Robert Klemme said: > > > You'll likely need to catch another exception. Try "rescue Exception => > > e" and then print e's class. > > The error in question is Timeout::Error which inherits from Interrupt > which in turn inherits from SignalException. Since a plain vanilla rescue > clause will only rescue exceptions deriving from StandardError (and > SignalException is not derived from StandardError), it won't pick up this > exception. > > If you use > > begin > # stuff > rescue Timeout::Error => ex > # handle timeout > end > > you should be ok. > > -- > -- Jim Weirich jim / weirichhouse.org http://onestepback.org > ----------------------------------------------------------------- > "Beware of bugs in the above code; I have only proved it correct, > not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) > >