Method: Chef::Resource#customize_exception

Defined in:
lib/chef/resource.rb

#customize_exception(e) ⇒ Object

[View source]

1560
1561
1562
1563
1564
# File 'lib/chef/resource.rb', line 1560

def customize_exception(e)
  new_exception = e.exception(custom_exception_message(e))
  new_exception.set_backtrace(e.backtrace)
  new_exception
end