Exception: FPM::Fry::Recipe::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fpm/fry/recipe/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, data = {}) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/fpm/fry/recipe/error.rb', line 8

def initialize(msg=nil, data={})
  super(msg)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



6
7
8
# File 'lib/fpm/fry/recipe/error.rb', line 6

def data
  @data
end