Exception: ChefApply::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, *params) ⇒ Error

Returns a new instance of Error.



22
23
24
25
26
27
28
# File 'lib/chef_apply/error.rb', line 22

def initialize(id, *params)
  @id = id
  @params = params || []
  @show_log = true
  @show_stack = true
  @decorate = true
end

Instance Attribute Details

#decorateObject

Returns the value of attribute decorate.



21
22
23
# File 'lib/chef_apply/error.rb', line 21

def decorate
  @decorate
end

#idObject (readonly)

Returns the value of attribute id.



20
21
22
# File 'lib/chef_apply/error.rb', line 20

def id
  @id
end

#paramsObject (readonly)

Returns the value of attribute params.



20
21
22
# File 'lib/chef_apply/error.rb', line 20

def params
  @params
end

#show_logObject

Returns the value of attribute show_log.



21
22
23
# File 'lib/chef_apply/error.rb', line 21

def show_log
  @show_log
end

#show_stackObject

Returns the value of attribute show_stack.



21
22
23
# File 'lib/chef_apply/error.rb', line 21

def show_stack
  @show_stack
end