Boost logo

Boost :

From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-08-08 14:16:58


Pavel,

> "Emil Dotchevski" wrote:
>
> > http://www.revergestudios.com/boost-exception/boost-exception.html
> >
> > 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:
> >
> > http://article.gmane.org/gmane.comp.lib.boost.devel/146322
> >
>
> I believe this functionality should be present
> and will be used extensively at the top level
> of an application.

Could you provide an example of using this functionality 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.

I am not sure I understand what you mean by typeswitch. Can you illustrate
your point with more code?

--Emil


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