Boost C++ Libraries: Ticket #5256: UTF doesn't call registered exception handler https://svn.boost.org/trac10/ticket/5256 <p> BOOST_CHECK_NO_THROW assert statement ignores handlers registered via </p> <pre class="wiki">boost::unit_test::unit_test_monitor::unit_test_monitor. register_exception_translator&lt;exeption_type&gt;( handler_instance ); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5256 Trac 1.4.3 Gennadiy Rozental Mon, 17 Oct 2011 02:39:41 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5256#comment:1 https://svn.boost.org/trac10/ticket/5256#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> And it can't. register_exception_translator interface is intended to tweak a report about unknown exception being thrown from test case. BOOST_CHECK_NO_THROW puts expression under test into a simple try catch block. You can add you own try/catch if you want to to ignore some exceptions. </p> Ticket anberlin.myplace@… Mon, 17 Oct 2011 17:21:22 GMT <link>https://svn.boost.org/trac10/ticket/5256#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5256#comment:2</guid> <description> <p> Yes, I can add separate try/catch block to ignore exceptions, but why I can't reuse logic of error reporting implemented in registered exception handler? </p> <p> It doesn't matter how BOOST_CHECK_NO_THROW is implemented. Why I must to comment this statement only for one purpose: to see in log what's happened. And it's incorrect to replace this statement with try/catch because it already communicates test's intension correctly. </p> </description> <category>Ticket</category> </item> </channel> </rss>