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.

Location:
code/trunk/src/libraries/core/input
Files:
2 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        }
  • 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.