Changeset 41214 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- May 8, 2012 5:59:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r41089 r41214 117 117 #include <memory> // for auto_ptr 118 118 #include <vector> 119 #include <typeinfo>120 119 121 120 … … 3484 3483 } 3485 3484 3486 3487 /**3488 * @copydoc VirtualBox::handleUnexpectedExceptions3489 */3490 /* static */3491 HRESULT Console::handleUnexpectedExceptions(RT_SRC_POS_DECL)3492 {3493 try3494 {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 }3516 3485 3517 3486 /* static */
Note:
See TracChangeset
for help on using the changeset viewer.