From: "Iñaki Baz Castillo" Date: 2012-05-17T06:59:39+09:00 Subject: Which exception classes does "rescue" trap? Hi, using Ruby 1.9 I've realized that "rescue" traps more than StandardError exceptions, for example NoMemoryError: irb> NoMemoryError.ancestors [NoMemoryError, Exception, Object, PP::ObjectMixin, Kernel, BasicObject] begin raise NoMemoryError, "NO MEMORY !!!" rescue puts "rescued" end => rescued But for example it does not trap ScriptError exceptions. So which exact exception classes does "rescue" trap? is it docummented somewhere? Unfortunately I am not able to find in Ruby sources where the definition of "rescue" is. Thanks a lot. -- Iñaki Baz Castillo