Changeset 5747 for code/trunk/src/libraries/core/TclBind.cc
- Timestamp:
- Sep 19, 2009, 11:17:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/TclBind.cc
r5738 r5747 35 35 #include "SpecialConfig.h" 36 36 #include "util/Debug.h" 37 #include "util/Exception.h" 37 38 #include "util/StringUtils.h" 38 39 #include "CommandExecutor.h" … … 92 93 catch (Tcl::tcl_error const &e) 93 94 { COUT(1) << "Tcl error while creating Tcl-interpreter: " << e.what() << std::endl; } 94 catch (std::exception const &e)95 { COUT(1) << "Error while creating Tcl-interpreter: " << e.what() << std::endl; }96 95 catch (...) 97 { COUT(1) << "Error while creating Tcl-interpreter ."<< std::endl; }96 { COUT(1) << "Error while creating Tcl-interpreter: " << Exception::handleMessage() << std::endl; } 98 97 } 99 98 } … … 115 114 catch (Tcl::tcl_error const &e) 116 115 { 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; } 117 catch (std::exception const &e)118 { COUT(1) << "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; }119 116 catch (...) 120 { COUT(1) << "Error while creating Tcl-interpreter ."<< std::endl; COUT(1) << "Error: Tcl isn't properly initialized. Orxonox might possibly not work like that." << std::endl; }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; } 121 118 122 119 return interpreter; … … 178 175 catch (Tcl::tcl_error const &e) 179 176 { COUT(1) << "tcl> Error: " << e.what() << std::endl; } 180 catch ( std::exception const &e)181 { COUT(1) << "Error while executing Tcl: " << e.what() << std::endl; }177 catch (...) 178 { COUT(1) << "Error while executing Tcl: " << Exception::handleMessage() << std::endl; } 182 179 } 183 180 … … 199 196 catch (Tcl::tcl_error const &e) 200 197 { COUT(1) << "Tcl error: " << e.what() << std::endl; } 201 catch ( std::exception const &e)202 { COUT(1) << "Error while executing Tcl: " << e.what() << std::endl; }198 catch (...) 199 { COUT(1) << "Error while executing Tcl: " << Exception::handleMessage() << std::endl; } 203 200 204 201 return false;
Note: See TracChangeset
for help on using the changeset viewer.