Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Test] Using boost::exception
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-03-06 14:26:10


On Tue, Mar 6, 2012 at 11:07 AM, Ovanes Markarian
<om_boost_at_[hidden]> wrote:
>
> On Mon, Mar 5, 2012 at 11:39 PM, Emil Dotchevski <emil_at_[hidden]>
> wrote:
>>
>> It is possible to get the diagnostic information out of what(). See
>>
>> www.boost.org/doc/libs/release/libs/exception/doc/diagnostic_information_what.html.
>>
> Thanks a lot for the answer. This is not my use case. I don't want to  catch
> the exception myself in the unit test. I would like Boost.Test to report the
> extended error.

You indicated that your version of Boost.Test shows the what()
message. My point was that you can implement (possibly in a base class
of your exception class hierarchy) what() using
diagnostic_information_what, and you'll see full diagnostic
information in any context that displays the what() string.

-- 
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