TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Rule:  ERR#003

Synopsis:Before letting any exceptions propagate out of a member function, make certain that the class invariant holds and, if possible, leave the state of the object unchanged
Language:C++
Severity Level:1
Category:Error Handling


Description:

This avoids that the object throwing an exception is left in an inconsistent (undefined) state. For more details see [Abrahams].



Literature References:
ISC++ Rec. 12.10