From: Jim Weirich Date: 2004-12-14T07:21:06+09:00 Subject: Re: Thread and HTTP troubles 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)