|
Boost Users : |
Subject: Re: [Boost-users] [Test] Making use of boost::exception_diagnostic_information and friends
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-08-09 14:16:11
On Sat, Aug 8, 2009 at 3:53 PM, Alexander Lamaison<awl03_at_[hidden]> wrote:
> It should be possible to let the test runner extract this information in the
> same way that diagnostic_infomation does and use it to improve the test
> runner output.
I'm not familiar with the test runner, but assuming that it is written
in C++, all it needs is something like:
#include <boost/exception/diagnostic_information.hpp>
....
catch(...)
{
std::cerr << boost::current_exception_diagnostic_information();
}
This will print the what() message (if available) too.
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net