Changeset 5747 for code/trunk/src/libraries/core/IRC.cc
- Timestamp:
- Sep 19, 2009, 11:17:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/IRC.cc
r5738 r5747 32 32 33 33 #include "util/Convert.h" 34 #include "util/Exception.h" 34 35 #include "ConsoleCommand.h" 35 36 #include "CoreIncludes.h" … … 64 65 catch (Tcl::tcl_error const &e) 65 66 { COUT(1) << "Tcl (IRC) error: " << e.what(); } 66 catch ( std::exception const &e)67 { COUT(1) << "Error while initializing Tcl (IRC): " << e.what(); }67 catch (...) 68 { COUT(1) << "Error while initializing Tcl (IRC): " << Exception::handleMessage(); } 68 69 69 70 this->nickname_ = "orx" + multi_cast<std::string>(static_cast<unsigned int>(rand())); … … 94 95 catch (Tcl::tcl_error const &e) 95 96 { COUT(1) << "Tcl (IRC) error: " << e.what(); } 96 catch ( std::exception const &e)97 { COUT(1) << "Error while executing Tcl (IRC): " << e.what(); }97 catch (...) 98 { COUT(1) << "Error while executing Tcl (IRC): " << Exception::handleMessage(); } 98 99 99 100 return false;
Note: See TracChangeset
for help on using the changeset viewer.