From: Oliver.Kowalke_at_[hidden]
Date: 2007-10-08 01:25:01


> > > > Wouldn't it make sense to combine boost:exception and
> > > boost:system (at
> > > > least error_code and error_category stuff)?
> > > > I find the error_code concept not only useful for system errors.
> > > > Oliver
> > >
> > > Are you proposing to define error_code and error_category tags as
> > > part of the Boost Exception library?
> >
> > Yes - because it's related to error/exception passing.
> > I'm using both libs in my projects.
>
> As a user of both libs, what do you think is more appropriate:
>
> - To have error_category and error_code tags in Boost Exception, or
>
> - To use separate Boost Exception tags for each category,
> each tag identifying an integer error code?

Hmmm - my code looks like this:

throw some_error() <<
BOOST_ERROR_INFO <<
boost::error_info< tag_error_code >( boost::system::error_code( errno,
boost::system::errno_ec) );

I think there is no need for extra tags for error_code and
error_category. I suggest that both classes and your exception framework
should be in one boost library.

Oliver