From: Nobuyoshi Nakada Date: 2007-09-06T10:33:10+09:00 Subject: Re: can't rescue Errno::EBADF Hi, At Thu, 6 Sep 2007 07:40:07 +0900, Mr_Tibs wrote in [ruby-talk:267813]: > Thanks for the reply. I did try the same thing and I noticed it works. > I really don't know what I'm doing wrong in my code. Same thing > happens when I try to catch Errno::ETIMEDOUT. Even when I make my own > Exception class it does work as expected, but not for these 2 > exception types. Does it work with SystemCallError? With rescuing Exception, is the class of the exception really same as Errno::EBADF? try: rescue Exception => e p e.class p e.class.ancestors p e.class == Errno::EBADF end -- Nobu Nakada