From: Francis Fish Date: 2009-01-16T18:56:59+09:00 Subject: Re: Does Ruby support exception wrapping (exception chaining Hi guys I came up with this based on your ideas but it doesn't have the complexity: class ParseFailed < Exception ; end # ... rescue Exception => e raise ParseFailed.new("Page generation failed #{e}: #{e.backtrace.join("\n")}") This raises my named exception with the text and full backtrace of the one thrown as the message. Not as good as chaining Exception.new(e) but it allows you to see the trace in the message without having to do another backtrace. It met my needs and seems a little simpler than hacking another exception class. -- Posted via http://www.ruby-forum.com/.