/************************************************************************* Application entry point *************************************************************************/ int SampleBrowserBase::run() { try { if (initialise("CEGUI.log", CEGUI::String())) d_baseApp->run(); cleanup(); } catch (const std::exception& exc) { outputExceptionMessage(exc.what()); } catch (const char* exc) { outputExceptionMessage(exc); } catch (...) { outputExceptionMessage("Unknown exception was caught!"); } return 0; }
/************************************************************************* Application entry point *************************************************************************/ int CEGuiSample::run() { try { if (initialise()) cleanup(); } catch (CEGUI::Exception& exc) { outputExceptionMessage(exc.getMessage().c_str()); } catch (std::exception& exc) { outputExceptionMessage(exc.what()); } catch(...) { outputExceptionMessage("Unknown exception was caught!"); } return 0; }
CEGUI_CATCH(...) { outputExceptionMessage("Unknown exception was caught!"); }
CEGUI_CATCH (const char* exc) { outputExceptionMessage(exc); }
CEGUI_CATCH (std::exception& exc) { outputExceptionMessage(exc.what()); }
CEGUI_CATCH (CEGUI::Exception& exc) { outputExceptionMessage(exc.getMessage().c_str()); }