VirtualBox

Changeset 14554 in vbox


Ignore:
Timestamp:
Nov 25, 2008 8:40:18 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39846
Message:

#3285: Improve error handling API to include unique error numbers

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

Legend:

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

    r14313 r14554  
    14991499
    15001500    if (mMachineState != MachineState_Running)
    1501         return setError (E_FAIL, tr ("Cannot pause the machine as it is "
    1502                                      "not running (machine state: %d)"),
    1503                         mMachineState);
     1501        return setError (VBOX_E_INVALID_VM_STATE,
     1502            tr ("Cannot pause the machine as it is not running "
     1503            "(machine state: %d)"), mMachineState);
    15041504
    15051505    /* protect mpVM */
     
    15151515
    15161516    HRESULT rc = VBOX_SUCCESS (vrc) ? S_OK :
    1517         setError (E_FAIL,
     1517        setError (VBOX_E_VM_ERROR,
    15181518            tr ("Could not suspend the machine execution (%Rrc)"), vrc);
    15191519
     
    38523852        }
    38533853        if (mCallbackData.mpsc.shape == NULL)
    3854         {
     3854        {
    38553855            mCallbackData.mpsc.shape = (BYTE *) RTMemAllocZ (cb);
    38563856            AssertReturnVoid (mCallbackData.mpsc.shape);
    3857         }
     3857        }
    38583858        mCallbackData.mpsc.shapeSize = cb;
    38593859        memcpy (mCallbackData.mpsc.shape, pShape, cb);
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r14521 r14554  
    167167  </result>
    168168
     169  <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
     170    <desc>
     171       Virtual machine error occurred attempting the operation.
     172    </desc>
     173  </result>
     174
    169175
    170176  <!--
Note: See TracChangeset for help on using the changeset viewer.

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