Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-02-14 09:58:11


r.lichtenberger_at_[hidden] writes:

> I've encountered a problem with exceptions in boost/test:
> Our project uses a base class for all our exceptions which cannot derive
> from std::exception.
>
> If such an exception is thrown, the message:
> Exception in "...": unknown type
> is printed out, which is not very helpful in locating the problem.
>
> Is there a way to specify an "exception handler", which can catch "our"
> exceptions and print something more useful?.
>
> We are working with the unit_test_monitor if that makes any difference.

We have a technology for installing user-defined exception handlers in
Boost.Python; I'd be happy to explain it to anyone who would like to
factor it out into a separate library that could be used by
Boost.Test.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk