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/graphics/ParticleEmitter.cc

    r5929 r7174  
    114114                this->particles_->setEnabled(this->isActive());
    115115            }
    116             catch (...)
     116            catch (const std::exception& ex)
    117117            {
    118118                COUT(1) << "Error: Couln't load particle effect \"" << this->source_ << "\" because:" << std::endl
    119                         << Exception::handleMessage() << std::endl;
     119                        << ex.what() << std::endl;
    120120            }
    121121        }
Note: See TracChangeset for help on using the changeset viewer.