VirtualBox

Changeset 14697 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 27, 2008 11:08:33 AM (16 years ago)
Author:
vboxsync
Message:

#3285: Improve error handling API to include unique error numbers
New error code VBOX_E_OBJECT_IN_USE used by deleteStorage.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HardDisk2Impl.cpp

    r14628 r14697  
    18081808
    18091809    if (m.backRefs.size() != 0)
    1810         return setError (E_FAIL,
     1810        return setError (VBOX_E_OBJECT_IN_USE,
    18111811            tr ("Hard disk '%ls' is attached to %d virtual machines"),
    18121812                m.locationFull.raw(), m.backRefs.size());
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r14690 r14697  
    304304  </result>
    305305
     306  <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB0007">
     307    <desc>
     308       Operation prohibited because object is in use.
     309    </desc>
     310  </result>
     311
    306312  <!--
    307313    Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
     
    73737379
    73747380        <see>#close()</see>
     7381
     7382        <result name="VBOX_E_OBJECT_IN_USE">
     7383          Hard disk is still attached to a virtual machine.
     7384        </result>
    73757385      </desc>
    73767386      <param name="progress" type="IProgress" dir="return">
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette