Boost logo

Boost :

From: Oliver.Kowalke_at_[hidden]
Date: 2007-09-28 07:27:10


The library provides the macro BOOST_ERROR_INFO. Is it possible to
modify the macro in such a way that successive calls of BOOST_ERROR_INFO
would add the date in a list? This could be used in order to get infos
which parts of the code catched the exception.
Regards, oliver

> > The library provides an exception class that can transport
> arbitrary
> > values, thus freeing the user from designing custom
> exception classes.
>
> I should clarify that the purpose of the library is not to
> free users from writing custom exception classes: after all,
> exceptions are caught by type -- not by value -- so to be
> able to tell one failure from another, we need to throw
> different types.
>
> The idea behind the proposed exception library is to move the
> burden of storing error codes, file names and other data
> relevant to a given failure, from the individual exception
> classes, to a single base class.
>
> This way the exception class hierarchy can be implemented
> entirely in terms of empty classes while still being able to
> transport to the catch site whatever information is necessary
> to handle a particular exception.
>
> Emil Dotchevski
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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