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

    r5738 r5747  
    4242
    4343#include "util/Debug.h"
     44#include "util/Exception.h"
    4445#include "core/Clock.h"
    4546#include "InputState.h"
     
    145146            catch (...)
    146147            {
    147                 COUT(1) << this->getClassName() << " destruction failed! Potential resource leak!" << std::endl;
     148                COUT(1) << this->getClassName() << " destruction failed: " << Exception::handleMessage() << std::endl
     149                        << "    Potential resource leak!" << std::endl;
    148150            }
    149151        }
Note: See TracChangeset for help on using the changeset viewer.