VirtualBox

Changeset 16040 in vbox


Ignore:
Timestamp:
Jan 19, 2009 11:11:12 AM (16 years ago)
Author:
vboxsync
Message:

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

  • use VBOX_E_OBJECT_NOT_FOUND instead of VBOX_E_FILE_ERROR in findMachine() and update documentation accordingly.
Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r16000 r16040  
    10181018    HRESULT rc = machine
    10191019        ? S_OK
    1020         : setError (VBOX_E_FILE_ERROR,
     1020        : setError (VBOX_E_OBJECT_NOT_FOUND,
    10211021            tr ("Could not find a registered machine named '%ls'"), aName);
    10221022
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r15978 r16040  
    16471647        </note>
    16481648
     1649        <result name="VBOX_E_OBJECT_NOT_FOUND">
     1650          No matching virtual machine found.
     1651        </result>
    16491652        <result name="VBOX_E_INVALID_OBJECT_STATE">
    16501653          Virtual machine was not created within this VirtualBox instance.
     
    16611664        instead.
    16621665
    1663         <result name="VBOX_E_FILE_ERROR">
     1666        <result name="VBOX_E_OBJECT_NOT_FOUND">
    16641667          Could not find registered machine matching @a id.
    16651668        </result>
     
    16761679        instead.
    16771680
    1678         <result name="VBOX_E_FILE_ERROR">
     1681        <result name="VBOX_E_OBJECT_NOT_FOUND">
    16791682          Could not find registered machine matching @a name.
    16801683        </result>
     
    17121715        </note>
    17131716
    1714         <result name="VBOX_E_FILE_ERROR">
     1717        <result name="VBOX_E_OBJECT_NOT_FOUND">
    17151718          Could not find registered machine matching @a id.
    17161719        </result>
     
    23042307        <result name="E_ACCESSDENIED">
    23052308          Process not started by OpenRemoteSession.
     2309        </result>
     2310        <result name="VBOX_E_OBJECT_NOT_FOUND">
     2311          No matching virtual machine found.
    23062312        </result>
    23072313        <result name="VBOX_E_INVALID_OBJECT_STATE">
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