Exception: ChefApply::WrappedError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(e, target_host) ⇒ WrappedError

Returns a new instance of WrappedError.



50
51
52
53
54
# File 'lib/chef_apply/error.rb', line 50

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.



49
50
51
# File 'lib/chef_apply/error.rb', line 49

def contained_exception
  @contained_exception
end

#target_hostObject

Returns the value of attribute target_host.



49
50
51
# File 'lib/chef_apply/error.rb', line 49

def target_host
  @target_host
end