
For that matter, why is boost::exception() necessary. Lets support the following syntax as well. try { throw file_err(name,mode,errno); } catch(boost::exception& e) { std::cerr << e; } Also, I say we keep the name boost::exception, at least until an equally clear library name is discovered.

Tom Brinkman wrote:
For that matter, why is boost::exception() necessary. Lets support the following syntax as well.
try { throw file_err(name,mode,errno);
But what if we want to append more tags (2 sets of tags, lets say)? Also, what about specifying the type of exception I want? Best, John -- http://John.Torjo.com -- C++ expert ... call me only if you want things done right

2007/10/3, John Torjo <john.groups@torjo.com>:
Tom Brinkman wrote:
For that matter, why is boost::exception() necessary. Lets support the following syntax as well.
try { throw file_err(name,mode,errno);
But what if we want to append more tags (2 sets of tags, lets say)? Also, what about specifying the type of exception I want?
And furthermore what if you do not know the name in that function. The caller might know that name. With boost.exception the caller might have sufficient information to deal with the error, or if not can append more information to allow others to deal with the exception. kind regards Andreas
participants (3)
-
Andreas Pokorny
-
John Torjo
-
Tom Brinkman