VirtualBox

Changeset 14791 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 28, 2008 4:30:57 PM (16 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

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

    r14786 r14791  
    18721872    if (mMachineState != MachineState_PoweredOff &&
    18731873        mMachineState != MachineState_Aborted)
    1874         return setError (E_FAIL,
     1874        return setError (VBOX_E_INVALID_VM_STATE,
    18751875            tr ("Cannot adopt the saved machine state as the machine is "
    18761876                "not in Powered Off or Aborted state (machine state: %d)"),
     
    18881888
    18891889    if (mMachineState != MachineState_Saved)
    1890         return setError (E_FAIL,
     1890        return setError (VBOX_E_INVALID_VM_STATE,
    18911891            tr ("Cannot discard the machine state as the machine is "
    18921892                "not in the saved state (machine state: %d)"),
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