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/input/InputManager.cc

    r5738 r5747  
    330330            catch (...)
    331331            {
    332                 CCOUT(1) << className << " destruction failed! Potential resource leak!" << std::endl;
     332                COUT(1) << className << " destruction failed: " << Exception::handleMessage() << std::endl
     333                        << "    Potential resource leak!" << std::endl;
    333334            }
    334335        }
     
    342343        catch (...)
    343344        {
    344             CCOUT(1) << "OIS::InputManager destruction failed! Potential resource leak!" << std::endl;
     345            COUT(1) << "OIS::InputManager destruction failed" << Exception::handleMessage() << std::endl
     346                    << "    Potential resource leak!" << std::endl;
    345347        }
    346348        oisInputManager_ = NULL;
Note: See TracChangeset for help on using the changeset viewer.