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
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
0 Comments:
Post a Comment
<< Home