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/XMLPort.h

    r5738 r5747  
    591591                                                    throw ex;
    592592                                                }
    593                                                 catch (std::exception& ex)
     593                                                catch (...)
    594594                                                {
    595595                                                    COUT(1) << "An error occurred while loading object:" << std::endl;
    596                                                     COUT(1) << ex.what() << std::endl;
    597                                                 }
    598                                                 catch (...)
    599                                                 {
    600                                                     COUT(1) << "An unknown error occurred while loading object." << std::endl;
     596                                                    COUT(1) << Exception::handleMessage() << std::endl;
    601597                                                }
    602598                                            }
Note: See TracChangeset for help on using the changeset viewer.