|
Subject: Re: [review] Review of Exception begins today Newsgroups: gmane.comp.lib.boost.devel Date: 2007-09-28 18:35:47 GMT (1 year, 39 weeks, 6 days, 2 hours and 3 minutes ago) > 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. Yes, I guess that's possible, but I think that what contexts catch (add BOOST_ERROR_INFO) and rethrow is less useful information than, for example, the caller stack at the time the exception was first thrown -- which is the type of info BOOST_ERROR_INFO is designed to stuff in exceptions. OTOH, if there is a way to detect a catch _automagically_, I suppose recording each catch in the exception object would be a good thing. Emil Dotchevski _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost |
|
|