From: Brian Candler Date: 2008-10-28T06:30:16+09:00 Subject: Re: problem catching nested exception It's possible the exception is being raised where you do not expect it, e.g. in smtp.finish Try to find out exactly what line in mailing_3.rb generates the exception. The fact that it is hidden under "... 8 levels..." is annoying here. I'm not sure if there's a generic way to stop Ruby suppressing the intermediate levels of the exception report, but a simple solution is to wrap your code with: begin ... rest of code rescue Exception => e STDERR.puts "#{e.message}\n#{e.backtrace.join("\n")}" end -- Posted via http://www.ruby-forum.com/.