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/TclBind.cc

    r6417 r7174  
    9393            catch (Tcl::tcl_error const &e)
    9494            {   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;   }
    9795        }
    9896    }
     
    114112        catch (Tcl::tcl_error const &e)
    115113        {   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;   }
    118114
    119115        return interpreter;
     
    175171            catch (Tcl::tcl_error const &e)
    176172            {   COUT(1) << "tcl> Error: " << e.what() << std::endl;   }
    177             catch (...)
    178             {   COUT(1) << "Error while executing Tcl: " << Exception::handleMessage() << std::endl;   }
    179173        }
    180174
     
    196190        catch (Tcl::tcl_error const &e)
    197191        {   COUT(1) << "Tcl error: " << e.what() << std::endl;   }
    198         catch (...)
    199         {   COUT(1) << "Error while executing Tcl: " << Exception::handleMessage() << std::endl;   }
    200192
    201193        return false;
Note: See TracChangeset for help on using the changeset viewer.