Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2010, 12:08:05 AM (14 years ago)
Author:
rgrieder
Message:

Only catch exceptions you actually expect. And rethrow unknown exceptions ("…" can also catch internal Microsoft exceptions like floating point exception).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/BigExplosion.cc

    r7171 r7174  
    7272                this->init();
    7373            }
    74             catch (...)
    75             {
    76                 COUT(1) << "Error: Couln't load particle effect in BigExplosion: " << Exception::handleMessage() << std::endl;
     74            catch (const std::exception& ex)
     75            {
     76                COUT(1) << "Error: Couln't load particle effect in BigExplosion: " << ex.what() << std::endl;
    7777                this->initZero();
    7878            }
Note: See TracChangeset for help on using the changeset viewer.