free hit counter

Wednesday, December 28, 2005

Exceptions and error handling [C++ FAQ Lite]

I'm always looking to refine my error handling and exceptions- they're so critical to systems, and so rarely done well.

This link from the C++ FAQ confirmed and reinforced my usual practices:
* throw exceptions in constructors (being wary that the destructor won't be called)
* don't throw execptions in destructors
* don't use exceptions like error codes

[17] Exceptions and error handling, C++ FAQ Lite


Post a Comment

<< Home