Exception: VirtualBox::Exceptions::FFIException
- Inherits:
-
Exception
- Object
- Exception
- Exception
- VirtualBox::Exceptions::FFIException
- 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)
-
- (Object) data
Returns the value of attribute data.
Instance Method Summary (collapse)
-
- (FFIException) initialize(data = {})
constructor
A new instance of FFIException.
Constructor Details
- (FFIException) initialize(data = {})
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
- (Object) data
Returns the value of attribute data
16 17 18 |
# File 'lib/virtualbox/exceptions.rb', line 16 def data @data end |