VirtualBox

Changeset 14697

Show
Ignore:
Timestamp:
11/27/08 12:08:33 (1 month 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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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"> 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy