|
Boost : |
From: Robert Zeh (razeh_at_[hidden])
Date: 2002-07-02 15:02:04
Robert Ramey <ramey_at_[hidden]> writes:
[ much elided]
> I believe the most general way to address this situation is to use:
>
> catch(...)
>
> which will catch all otherwise uncaught exceptions. So I didn't consider this a reason
> for using std::exception. It did not occur to me to check what the rest of boost uses.
> I looked carefully at what std::exception provides and found nothing that was helpful
> in my case. If there is a good reason for always using std::exception, I would be
> very interested in hearing it.
I can do two things I catch std::exception instead of ...
1) I can log the type of exception thrown.
2) I can log the results of invoking what() on the exception.
Robert Zeh
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk