Class: ChefCLI::ServiceExceptionInspectors::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-cli/service_exception_inspectors/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ Base

Returns a new instance of Base.



25
26
27
# File 'lib/chef-cli/service_exception_inspectors/base.rb', line 25

def initialize(exception)
  @exception = exception
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



23
24
25
# File 'lib/chef-cli/service_exception_inspectors/base.rb', line 23

def exception
  @exception
end

Instance Method Details

#extended_error_infoObject



33
34
35
# File 'lib/chef-cli/service_exception_inspectors/base.rb', line 33

def extended_error_info
  ""
end

#messageObject



29
30
31
# File 'lib/chef-cli/service_exception_inspectors/base.rb', line 29

def message
  exception.message
end