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

    r5738 r5747  
    110110            {
    111111                this->particles_ = new ParticleInterface(this->getScene()->getSceneManager(), this->source_, this->LOD_);
    112                 this->attachOgreObject(this->particles_->getParticleSystem());
    113                 this->particles_->setVisible(this->isVisible());
    114                 this->particles_->setEnabled(this->isActive());
    115112            }
    116113            catch (...)
    117114            {
    118                 COUT(1) << "Error: Couln't load particle effect \"" << this->source_ << "\"" << std::endl;
    119                 this->particles_ = 0;
     115                COUT(1) << "Error: Couln't load particle effect \"" << this->source_ << "\" because:" << std::endl
     116                        << Exception::handleMessage() << std::endl;
    120117            }
     118            this->attachOgreObject(this->particles_->getParticleSystem());
     119            this->particles_->setVisible(this->isVisible());
     120            this->particles_->setEnabled(this->isActive());
    121121        }
    122122    }
Note: See TracChangeset for help on using the changeset viewer.