Changeset 7174 for code/trunk/src/libraries/core
- Timestamp:
- Aug 18, 2010, 12:08:05 AM (14 years ago)
- Location:
- code/trunk/src/libraries/core
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/IRC.cc
r6417 r7174 66 66 catch (Tcl::tcl_error const &e) 67 67 { COUT(1) << "Tcl (IRC) error: " << e.what(); } 68 catch (...)69 { COUT(1) << "Error while initializing Tcl (IRC): " << Exception::handleMessage(); }70 68 71 69 this->nickname_ = "orx" + multi_cast<std::string>(static_cast<unsigned int>(rand())); … … 96 94 catch (Tcl::tcl_error const &e) 97 95 { COUT(1) << "Tcl (IRC) error: " << e.what(); } 98 catch (...)99 { COUT(1) << "Error while executing Tcl (IRC): " << Exception::handleMessage(); }100 96 101 97 return false; -
code/trunk/src/libraries/core/TclBind.cc
r6417 r7174 93 93 catch (Tcl::tcl_error const &e) 94 94 { COUT(1) << "Tcl error while creating Tcl-interpreter: " << e.what() << std::endl; } 95 catch (...)96 { COUT(1) << "Error while creating Tcl-interpreter: " << Exception::handleMessage() << std::endl; }97 95 } 98 96 } … … 114 112 catch (Tcl::tcl_error const &e) 115 113 { COUT(1) << "Tcl error while creating Tcl-interpreter: " << e.what() << std::endl; COUT(1) << "Error: Tcl isn't properly initialized. Orxonox might possibly not work like that." << std::endl; } 116 catch (...)117 { COUT(1) << "Error while creating Tcl-interpreter: " << Exception::handleMessage() << std::endl; COUT(1) << "Error: Tcl isn't properly initialized. Orxonox might possibly not work like that." << std::endl; }118 114 119 115 return interpreter; … … 175 171 catch (Tcl::tcl_error const &e) 176 172 { COUT(1) << "tcl> Error: " << e.what() << std::endl; } 177 catch (...)178 { COUT(1) << "Error while executing Tcl: " << Exception::handleMessage() << std::endl; }179 173 } 180 174 … … 196 190 catch (Tcl::tcl_error const &e) 197 191 { COUT(1) << "Tcl error: " << e.what() << std::endl; } 198 catch (...)199 { COUT(1) << "Error while executing Tcl: " << Exception::handleMessage() << std::endl; }200 192 201 193 return false; -
code/trunk/src/libraries/core/TclThreadManager.cc
r7165 r7174 287 287 catch (const Tcl::tcl_error& e) 288 288 { bundle->interpreter_ = 0; COUT(1) << "Tcl error while creating Tcl-interpreter (" << id_string << "): " << e.what() << std::endl; } 289 catch (...)290 { bundle->interpreter_ = 0; COUT(1) << "Error while creating Tcl-interpreter (" << id_string << "): " << Exception::handleMessage() << std::endl; }291 289 } 292 290 -
code/trunk/src/libraries/core/input/InputDevice.h
r6746 r7174 40 40 #include <vector> 41 41 #include <ois/OISInputManager.h> 42 #include <ois/OISException.h> 42 43 43 44 #include "util/Clock.h" … … 144 145 oisInputManager_->destroyInputObject(oisDevice_); 145 146 } 146 catch ( ...)147 catch (const OIS::Exception& ex) 147 148 { 148 COUT(1) << this->getClassName() << " destruction failed: " << Exception::handleMessage()<< std::endl149 COUT(1) << this->getClassName() << " destruction failed: " << ex.eText << std::endl 149 150 << " Potential resource leak!" << std::endl; 150 151 } -
code/trunk/src/libraries/core/input/InputManager.cc
r6746 r7174 306 306 continue; 307 307 const std::string& className = device->getClassName(); 308 try 309 { 310 delete device; 311 device = 0; 312 CCOUT(4) << className << " destroyed." << std::endl; 313 } 314 catch (...) 315 { 316 COUT(1) << className << " destruction failed: " << Exception::handleMessage() << std::endl 317 << " Potential resource leak!" << std::endl; 318 } 308 delete device; 309 device = 0; 310 CCOUT(4) << className << " destroyed." << std::endl; 319 311 } 320 312 devices_.resize(InputDeviceEnumerator::FirstJoyStick); … … 325 317 OIS::InputManager::destroyInputSystem(oisInputManager_); 326 318 } 327 catch ( ...)328 { 329 COUT(1) << "OIS::InputManager destruction failed" << Exception::handleMessage()<< std::endl319 catch (const OIS::Exception& ex) 320 { 321 COUT(1) << "OIS::InputManager destruction failed" << ex.eText << std::endl 330 322 << " Potential resource leak!" << std::endl; 331 323 }
Note: See TracChangeset
for help on using the changeset viewer.