|
Boost : |
From: Minh Phanivong (m_phanivong_at_[hidden])
Date: 2006-11-09 02:04:22
Emil,
how about another choice (which is more consistent with TR2 Diagnostics
Enhancements) :
error_info
throw my_exception() <<
error_info<tag_errno>(errno) <<
error_info<tag_function>(BOOST_CURRENT_FUNCTION);
catch( boost::exception & x )
{
x << error_info<tag_filename>(fn);
throw;
}
Minh
----- Original Message -----
From: "Emil Dotchevski" <emildotchevski_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, November 08, 2006 6:57 AM
Subject: [boost] Exception lib proposal: renaming boost::exception_info
snip
>
> except_info
> throw_info
>
> Here is an example of how they would look in code:
>
> throw my_exception() <<
> except_info<tag_errno>(errno) <<
> except_info<tag_function>(BOOST_CURRENT_FUNCTION);
>
> -or-
>
> throw my_exception() <<
> throw_info<tag_errno>(errno) <<
> throw_info<tag_function>(BOOST_CURRENT_FUNCTION);
>
snip
> catch( boost::exception & x )
> {
> x << except_info<tag_filename>(fn);
> throw;
> }
>
> -or-
>
> catch( boost::exception & x )
> {
> x << throw_info<tag_filename>(fn);
> throw;
> }
>
> Any strong preferences?
>
> Thanks,
> Emil Dotchevski
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Send instant messages to your online friends http://au.messenger.yahoo.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk