Exception: VirtualBox::Exceptions::FFIException

Inherits:
Exception
  • Object
show all
Defined in:
lib/virtualbox/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ FFIException

Returns a new instance of FFIException.



18
19
20
21
# File 'lib/virtualbox/exceptions.rb', line 18

def initialize(data={})
  @data = data
  super("Error in API call to #{data[:function]}: #{data[:result_code]}")
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



16
17
18
# File 'lib/virtualbox/exceptions.rb', line 16

def data
  @data
end