Exception: ChefCore::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, *params) ⇒ Error

Returns a new instance of Error.



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

def initialize(id, *params)
  @id = id
  @params = params || []
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#paramsObject (readonly)

Returns the value of attribute params.



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

def params
  @params
end