VirtualBox

Changeset 14579 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Nov 25, 2008 3:59:35 PM (16 years ago)
Author:
vboxsync
Message:

Main: VirtualBoxBase::addCaller() now returns E_ACCESSDENIED. Also replaced E_UNEXPECTED with E_FAIL in all Assert* statements (for consistency).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ProgressImpl.h

    r13580 r14579  
    298298        /* Enclose the state transition NotReady->InInit->Ready */
    299299        AutoInitSpan autoInitSpan (this);
    300         AssertReturn (autoInitSpan.isOk(), E_UNEXPECTED);
     300        AssertReturn (autoInitSpan.isOk(), E_FAIL);
    301301
    302302        mProgresses = ProgressVector (aFirstProgress, aLastProgress);
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r13887 r14579  
    366366 *
    367367 *  When this object is not ready, the macro sets error info and returns
    368  *  E_UNEXPECTED (the translatable error message is defined in null context).
     368 *  E_ACCESSDENIED (the translatable error message is defined in null context).
    369369 *  Otherwise, the macro does nothing.
    370370 *
     
    376376    do { \
    377377        if (!isReady()) \
    378             return setError (E_UNEXPECTED, tr ("The object is not ready")); \
     378            return setError (E_ACCESSDENIED, tr ("The object is not ready")); \
    379379    } while (0)
    380380
     
    767767     * {
    768768     *     AutoInitSpan autoInitSpan (this);
    769      *     AssertReturn (autoInitSpan.isOk(), E_UNEXPECTED);
     769     *     AssertReturn (autoInitSpan.isOk(), E_FAIL);
    770770     *     ...
    771771     *     if (FAILED (rc))
     
    863863     * {
    864864     *     AutoReinitSpan autoReinitSpan (this);
    865      *     AssertReturn (autoReinitSpan.isOk(), E_UNEXPECTED);
     865     *     AssertReturn (autoReinitSpan.isOk(), E_FAIL);
    866866     *     ...
    867867     *     if (FAILED (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