Exception: VirtualBox::Exceptions::FFIException

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

Direct Known Subclasses

FileErrorException, HostErrorException, InvalidObjectStateException, InvalidSessionStateException, InvalidVMStateException, NotSupportedException, ObjectInUseException, ObjectNotFoundException, PDMException, SubsystemException, VMErrorException, XMLErrorException

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (FFIException) initialize(data = {})



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

- (Object) data

Returns the value of attribute data



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

def data
  @data
end