Exception: ChefCore::WrappedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chef_core/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(e, target_host) ⇒ WrappedError

Returns a new instance of WrappedError.



29
30
31
32
33
# File 'lib/chef_core/error.rb', line 29

def initialize(e, target_host)
  super(e.message)
  @contained_exception = e
  @target_host = target_host
end

Instance Attribute Details

#contained_exceptionObject

Returns the value of attribute contained_exception.



28
29
30
# File 'lib/chef_core/error.rb', line 28

def contained_exception
  @contained_exception
end

#target_hostObject

Returns the value of attribute target_host.



28
29
30
# File 'lib/chef_core/error.rb', line 28

def target_host
  @target_host
end