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

Rule:  ERR#002

This rule is Obsolete
Synopsis:Constructors of types thrown as exceptions shall not themselves throw exceptions
Language:C++
Severity Level:1
Category:Error Handling


Description:

Constructors of _EXC types, [STY#023], shall never throw an exception. These types are usually constructed as a temporary object in a throw expression. When this construction throws an exception, the intended exception will not be thrown anymore.



Literature References:
ISC++ Rec 12.6