Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 19, 2009, 11:17:51 PM (15 years ago)
Author:
rgrieder
Message:

Added Exception::handleMessage() (copy from Game::getExceptionMessage) function that returns the exception message (if retrievable) when catching with "…"
and adjusted some exception handlers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/Orxonox.cc

    r5738 r5747  
    4545
    4646#include "util/Debug.h"
     47#include "util/Exception.h"
    4748#include "orxonox/Main.h"
    4849
     
    6768#endif
    6869    }
    69     catch (const std::exception& ex)
    70     {
    71         COUT(0) << "Orxonox failed to initialise: " << ex.what() << std::endl;
    72         COUT(0) << "Terminating program." << std::endl;
    73         return 1;
    74     }
    7570    catch (...)
    7671    {
    77         COUT(0) << "Orxonox failed to initialise: " << std::endl;
     72        COUT(0) << "Orxonox failed to initialise: " << orxonox::Exception::handleMessage() << std::endl;
    7873        COUT(0) << "Terminating program." << std::endl;
    7974        return 1;
Note: See TracChangeset for help on using the changeset viewer.