Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2010, 12:08:05 AM (14 years ago)
Author:
rgrieder
Message:

Only catch exceptions you actually expect. And rethrow unknown exceptions ("…" can also catch internal Microsoft exceptions like floating point exception).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/IRC.cc

    r6417 r7174  
    6666        catch (Tcl::tcl_error const &e)
    6767        {   COUT(1) << "Tcl (IRC) error: " << e.what();   }
    68         catch (...)
    69         {   COUT(1) << "Error while initializing Tcl (IRC): " << Exception::handleMessage();   }
    7068
    7169        this->nickname_ = "orx" + multi_cast<std::string>(static_cast<unsigned int>(rand()));
     
    9694        catch (Tcl::tcl_error const &e)
    9795        {   COUT(1) << "Tcl (IRC) error: " << e.what();   }
    98         catch (...)
    99         {   COUT(1) << "Error while executing Tcl (IRC): " << Exception::handleMessage();   }
    10096
    10197        return false;
Note: See TracChangeset for help on using the changeset viewer.