Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-10-30 16:02:32


Beman Dawes wrote:
> At 09:00 AM 10/30/2003, Peter Dimov wrote:
>
> > Bronek Kozicki wrote:
> > > why don't we just make *small* hierarchy of exceptions, all
> > > derived from "socket_error" derived from "std::runtime_error" ?
> >
> >What does the user gain from this?
>
> Users who care about the exact reason can catch the more detailed
> types,
> uses who just care that the exception is sockets related can catch
> socket_error?

Yes of course, that's the point of a hierarchy. The question was what is
gained by artificially making the hierarchy smaller by collapsing several
distinct types into one.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk