Beispiel #1
0
/*************************************************************************
    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;
}
Beispiel #2
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;
}
Beispiel #3
0
 CEGUI_CATCH(...)
 {
     outputExceptionMessage("Unknown exception was caught!");
 }
Beispiel #4
0
 CEGUI_CATCH (const char* exc)
 {
     outputExceptionMessage(exc);
 }
Beispiel #5
0
 CEGUI_CATCH (std::exception& exc)
 {
     outputExceptionMessage(exc.what());
 }
Beispiel #6
0
 CEGUI_CATCH (CEGUI::Exception& exc)
 {
     outputExceptionMessage(exc.getMessage().c_str());
 }