Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2006-08-07 20:18:28

"Emil Dotchevski" wrote:

> It is also possible to extend the interface to support enumeration of the
> exception info stored in boost::exception objects, but my personal
> preference is to first collect more feedback from people using the
> library,
> because I'm not sure if this enumeration is needed in practice. Brad King
> illustrated this idea in his earlier post:

I believe this functionality should be present
and will be used extensively at the top level
of an application.

There should be also ability to support
visitation of exception objects.
Imagine situation:

 try {
 } catch (boost::exception& e) {
     e << ....;

     // now some exceptions could be handled
     // and some need to be passed up

The ??? could be typeswitch or it could
be a visitor object passed into the exception.
The visitor would be able to throw original
or new exception or handle the situation.
The visitor could be separated, reused
and is more dynamic than a typeswitch.


Just FYI: on
is slide show from Andrei Alexandrescu and Petru Margineanu
suggesting capability to employ either exceptions or local
error handling at will.

Boost list run by bdawes at, gregod at, cpdaniel at, john at