VirtualBox

Changeset 41214 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
May 8, 2012 5:59:43 PM (13 years ago)
Author:
vboxsync
Message:

Main: move handleUnexpectedExceptions method to VirtualBoxBase

File:
1 edited

Legend:

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

    r41089 r41214  
    117117#include <memory> // for auto_ptr
    118118#include <vector>
    119 #include <typeinfo>
    120119
    121120
     
    34843483}
    34853484
    3486 
    3487 /**
    3488  * @copydoc VirtualBox::handleUnexpectedExceptions
    3489  */
    3490 /* static */
    3491 HRESULT Console::handleUnexpectedExceptions(RT_SRC_POS_DECL)
    3492 {
    3493     try
    3494     {
    3495         /* re-throw the current exception */
    3496         throw;
    3497     }
    3498     catch (const std::exception &err)
    3499     {
    3500         return setErrorStatic(E_FAIL,
    3501                               tr("Unexpected exception: %s [%s]\n%s[%d] (%s)"),
    3502                               err.what(), typeid(err).name(),
    3503                               pszFile, iLine, pszFunction);
    3504     }
    3505     catch (...)
    3506     {
    3507         return setErrorStatic(E_FAIL,
    3508                               tr("Unknown exception\n%s[%d] (%s)"),
    3509                               pszFile, iLine, pszFunction);
    3510     }
    3511 
    3512     /* should not get here */
    3513     AssertFailed();
    3514     return E_FAIL;
    3515 }
    35163485
    35173486/* static */
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