From: "RadosÅ‚aw BuÅ‚at" Date: 2009-01-11T20:29:52+09:00 Subject: Re: How can I access after an exception (in the rescue area) the file, class, method, line number for where the error occurred? When you catch, err, rescue exception look at the 'backtrace' method. It won't give you all information you need, but some of them. # file exc.rb class A def foo raise "bar" end end begin a = A.new a.foo rescue => e puts e.backtrace end $ ruby exc.rb exc.rb:3:in `foo' exc.rb:9 -- Pozdrawiam Rados³aw Bu³at http://radarek.jogger.pl - mój blog