
10 Nov
2006
10 Nov
'06
11:21 a.m.
throw my_exception() << throw_info<tag_errno>(errno) << throw_info<tag_function>(BOOST_CURRENT_FUNCTION);
The above is a use case of encoding exception information at the time of the throw. The other use case is to catch a boost::exception, add exception info to it and re-throw. Here is an example of how each of except_info and throw_info would look in that case:
Any strong preferences?
What about upcoming boost::system::error_code and boost::system::system_error (used to report os errors)? regards, Oliver