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