Exception: VirtualBox::COM::COMException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ COMException

Returns a new instance of COMException.



9
10
11
12
# File 'lib/virtualbox/com/exceptions.rb', line 9

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

Instance Attribute Details

#dataObject

Returns the value of attribute data.



7
8
9
# File 'lib/virtualbox/com/exceptions.rb', line 7

def data
  @data
end