|
Boost : |
From: Stefano Delli Ponti (stefano.delliponti_at_[hidden])
Date: 2003-01-09 11:24:39
From: "Peter Dimov" <pdimov_at_[hidden]>
> I don't see any drawback in throwing something derived from
> std::runtime_error, and not std::runtime_error itself. This lets you
provide
> more information for clients that catch(thread_error) and still lets
others
> catch(std::runtime_error).
>
> As for the extra information, on POSIX it would be a good idea to provide
> the errno-compatible error code returned by pthread_*, and it _might_ be a
> good idea to supply a portable error code, too, as the filesystem library
> does.
>
Fully agreed.
That is an example of what I meant with "coherence between the two
libraries".
Sted
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk