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/libraries/core/Loader.cc

    r5738 r5747  
    187187            return false;
    188188        }
    189         catch (std::exception& ex)
     189        catch (...)
    190190        {
    191191            COUT(1) << std::endl;
    192192            COUT(1) << "An error occurred in Loader.cc while loading " << file->getFilename() << ":" << std::endl;
    193             COUT(1) << ex.what() << std::endl;
    194             COUT(1) << "Loading aborted." << std::endl;
    195             return false;
    196         }
    197         catch (...)
    198         {
    199             COUT(1) << std::endl;
    200             COUT(1) << "An unknown error occurred in Loader.cc while loading " << file->getFilename() << ":" << std::endl;
     193            COUT(1) << Exception::handleMessage() << std::endl;
    201194            COUT(1) << "Loading aborted." << std::endl;
    202195            return false;
Note: See TracChangeset for help on using the changeset viewer.