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.


-- 
Iaki Baz Castillo
<ibc / aliax.net>