VirtualBox

Ignore:
Timestamp:
Dec 1, 2008 4:18:38 PM (16 years ago)
Author:
vboxsync
Message:

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

  • IVirtualBox::getHardDisk2
  • IVirtualBox::findHardDisk2
  • IVirtualBox::openDVDImage (todo: document file not found)
File:
1 edited

Legend:

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

    r14858 r14874  
    11751175                                        IHardDisk2 **aHardDisk)
    11761176{
    1177    if (!aLocation)
     1177    if (!aLocation)
    11781178        return E_INVALIDARG;
    1179    if (!aHardDisk)
     1179    if (!aHardDisk)
    11801180        return E_POINTER;
    11811181
     
    27022702    }
    27032703
    2704     HRESULT rc = result == 0 ? S_OK : E_INVALIDARG;
     2704    HRESULT rc = result == 0 ? S_OK : VBOX_E_OBJECT_NOT_FOUND;
    27052705
    27062706    if (aSetError && result != 0)
     
    34693469    if (!conflict.isNull())
    34703470    {
    3471         return setError (E_INVALIDARG,
     3471        return setError (VBOX_E_FILE_ERROR,
    34723472            tr ("Cannot register the CD/DVD image '%ls' with UUID {%RTuuid} "
    34733473                "because a %s already exists in the media registry ('%ls')"),
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