From: matz@... (Yukihiro Matsumoto) Date: 2001-05-16T01:01:34+09:00 Subject: [ruby-talk:15171] Re: How do I catch unsuspecting errors: Hi, In message "[ruby-talk:15158] How do I catch unsuspecting errors:" on 01/05/15, Jim Freeze writes: |begin | a = nil # setup an error | a.each {|i| puts i} |rescue | puts |end | |But of course, rescue does not catch this type of error. |Is general error catching possible in Ruby and if so, |can someone tell me how it is done. Try "rescue NameError" or "rescue Exception". matz.