VirtualBox

Changeset 14849 in vbox for trunk/src


Ignore:
Timestamp:
Dec 1, 2008 11:09:19 AM (16 years ago)
Author:
vboxsync
Message:

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

  • IConsole::takeSnapshot
  • IConsole::discardSnapshot
  • IConsole::discardCurrentState
  • IConsole::discardCurrentSnapshotAndState
  • IConsole::registerCallback
  • IConsole::unregisterCallback
Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r14846 r14849  
    22642264    if (mMachineState > MachineState_Paused)
    22652265    {
    2266         return setError (E_FAIL,
     2266        return setError (VBOX_E_INVALID_VM_STATE,
    22672267            tr ("Cannot take a snapshot of the machine "
    22682268                "while it is changing the state (machine state: %d)"),
     
    24342434
    24352435    if (mMachineState >= MachineState_Running)
    2436         return setError (E_FAIL,
     2436        return setError (VBOX_E_INVALID_VM_STATE,
    24372437            tr ("Cannot discard a snapshot of the running machine "
    24382438                "(machine state: %d)"),
     
    24552455
    24562456    if (mMachineState >= MachineState_Running)
    2457         return setError (E_FAIL,
     2457        return setError (VBOX_E_INVALID_VM_STATE,
    24582458            tr ("Cannot discard the current state of the running machine "
    24592459                "(nachine state: %d)"),
     
    24762476
    24772477    if (mMachineState >= MachineState_Running)
    2478         return setError (E_FAIL,
     2478        return setError (VBOX_E_INVALID_VM_STATE,
    24792479            tr ("Cannot discard the current snapshot and state of the "
    24802480                "running machine (machine state: %d)"),
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r14846 r14849  
    49554955
    49564956        <see>ISnapshot, <link to="#saveState"/></see>
     4957        <result name="VBOX_E_INVALID_VM_STATE">
     4958          Virtual machine currently changing state.
     4959        </result>
    49574960      </desc>
    49584961      <param name="name" type="wstring" dir="in">
     
    50495052          make all current machine settings permanent.
    50505053        </note>
     5054        <result name="VBOX_E_INVALID_VM_STATE">
     5055          Virtual machine is running.
     5056        </result>
    50515057      </desc>
    50525058      <param name="id" type="uuid" dir="in">
     
    50855091        </note>
    50865092
     5093        <result name="VBOX_E_INVALID_VM_STATE">
     5094          Virtual machine is running.
     5095        </result>
    50875096      </desc>
    50885097      <param name="progress" type="IProgress" dir="return">
     
    51295138
    51305139        <note>
    5131           This method is more efficient than calling two above
     5140          This method is more efficient than calling both of the above
    51325141          methods separately: it requires less IPC calls and provides
    51335142          a single progress object.
    51345143        </note>
    51355144
     5145        <result name="VBOX_E_INVALID_VM_STATE">
     5146          Virtual machine is running.
     5147        </result>
    51365148      </desc>
    51375149      <param name="progress" type="IProgress" dir="return">
     
    51535165        Unregisters the console callback previously registered using
    51545166        <link to="#registerCallback"/>.
     5167        <result name="E_INVALIDARG">
     5168          Given @a callback handler is not registered.
     5169        </result>
    51555170      </desc>
    51565171      <param name="callback" type="IConsoleCallback" dir="in"/>
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