Menu

Custom error reporting method?

Developers
2010-01-05
2013-04-24
  • Bjorn Fahller

    Bjorn Fahller - 2010-01-05

    Any chance of adding a way to register a user-defined error reporting method, instead of always throwing exception? I am wary of using exceptions to report errors (in test tools, not in production code,) since the unit under test may be poorly written and swallow an error report with a catch(…).

    The reason for asking is that I'd like to add mockpp as a suggested mocking framework for my mock-less unit test system , and although exceptions will work, it will work poorly.

      : http://crpcut.sourceforge.net

     
  • Ewald Arnold

    Ewald Arnold - 2010-01-06

    Hello,

    I assume you already noticed the following :-)

      http://mockpp.sourceforge.net/handbook/embedded-solution.html

    When I implemented disabling rtti and exceptions my main intention was to have a proof of concept. So it may not fully work (yet) as you may have in mind. But suggestions and especially patches are welcome.

    greets

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.