Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 9, 2008, 11:08:24 AM (16 years ago)
Author:
rgrieder
Message:
  • Simplified creation of a new Exception type (only one line to add now)
  • Replaced newly created "trow TypeException("description")" with "ThrowException(Type, "description")". That adds line number, file name and function name to the full message.
Location:
code/branches/objecthierarchy/src/orxonox/objects/worldentities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/worldentities/Camera.cc

    r2161 r2162  
    5353
    5454        if (!this->getScene() || !this->getScene()->getSceneManager())
    55             throw AbortLoadingException("Can't create Camera, no scene or no scene manager given.");
     55            ThrowException(AbortLoading, "Can't create Camera, no scene or no scene manager given.");
    5656
    5757        this->camera_ = this->getScene()->getSceneManager()->createCamera(getUniqueNumberString());
  • code/branches/objecthierarchy/src/orxonox/objects/worldentities/ParticleEmitter.cc

    r2161 r2162  
    5151
    5252        if (!this->getScene() || !this->getScene()->getSceneManager())
    53             throw AbortLoadingException("Can't create Camera, no scene or no scene manager given.");
     53            ThrowException(AbortLoading, "Can't create Camera, no scene or no scene manager given.");
    5454
    5555        this->particles_ = 0;
  • code/branches/objecthierarchy/src/orxonox/objects/worldentities/WorldEntity.cc

    r2161 r2162  
    5454
    5555        if (!this->getScene() || !this->getScene()->getRootSceneNode())
    56             throw AbortLoadingException("Can't create WorldEntity, no scene or no root-scenenode given.");
     56            ThrowException(AbortLoading, "Can't create WorldEntity, no scene or no root-scenenode given.");
    5757
    5858        this->node_ = this->getScene()->getRootSceneNode()->createChildSceneNode();
Note: See TracChangeset for help on using the changeset viewer.