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/sound/SoundManager.cc

    r6417 r7174  
    521521                buffer.reset(new SoundBuffer(filename, this->effectsPool_.end()));
    522522            }
    523             catch (...)
    524             {
    525                 COUT(1) << Exception::handleMessage() << std::endl;
     523            catch (const std::exception& ex)
     524            {
     525                COUT(1) << ex.what() << std::endl;
    526526                return buffer;
    527527            }
Note: See TracChangeset for help on using the changeset viewer.