VirtualBox

Changeset 60546 in vbox


Ignore:
Timestamp:
Apr 18, 2016 4:45:44 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106675
Message:

Main/idl: document how errors are handled when creating IVirtualBox or IVirtualBoxClient instances

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r60410 r60546  
    18801880      To enumerate all the virtual machines on the host, use the
    18811881      <link to="IVirtualBox::machines"/> attribute.
     1882
     1883      Error information handling is a bit special with IVirtualBox: creating
     1884      an instance will always succeed. The return of the actual error
     1885      code/information is postponed to any attribute or method call. The
     1886      reason for this is that COM likes to mutilate the error code and lose
     1887      the detailed error information returned by instance creation.
    18821888    </desc>
    18831889
     
    2114221148      via the webservice). Once the session logic is redesigned this might
    2114321149      change.
     21150
     21151      Error information handling is a bit special with IVirtualBoxClient:
     21152      creating an instance will always succeed. The return of the actual error
     21153      code/information is postponed to any attribute or method call. The
     21154      reason for this is that COM likes to mutilate the error code and lose
     21155      the detailed error information returned by instance creation.
    2114421156    </desc>
    2114521157
  • trunk/src/VBox/Main/src-client/VirtualBoxClientImpl.cpp

    r60065 r60546  
    138138    }
    139139
    140     /* Confirm a successful initialization iwhen it's the case. Must be last,
     140    /* Confirm a successful initialization when it's the case. Must be last,
    141141     * as on failure it will uninitialize the object. */
    142142    if (SUCCEEDED(rc))
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