# File lib/chef/resource.rb, line 657 def customize_exception(e) new_exception = e.exception("#{self} (#{defined_at}) had an error: #{e.class.name}: #{e.message}") new_exception.set_backtrace(e.backtrace) new_exception end