Exception: VirtualBox::Exceptions::COMException
- Defined in:
- lib/virtualbox/exceptions.rb
Direct Known Subclasses
FileErrorException, HostErrorException, InvalidArgException, 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 = {}) ⇒ COMException
constructor
A new instance of COMException.
Constructor Details
#initialize(data = {}) ⇒ COMException
Returns a new instance of COMException.
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 |