Next: 10 Expressions  Up: index  Previous: 8 Declarations and Definitions  Contents

9 Exceptions

9.1

High Integrity CPP Rule

Do not throw exceptions from within destructors.

9.2

High Integrity CPP Rule

Only throw objects of class type.

9.3

High Integrity CPP Rule

Catch exceptions by reference.

9.4

High Integrity CPP Guideline

Only use the C++ exception handling mechanism to handle error conditions.

9.5

High Integrity CPP Guideline

Each application must have some scheme for ensuring that all orphaned resources are properly released when an exception is thrown.

9.6

High Integrity CPP Guideline

Each application that acquires resources that are not automatically freed at program termination must use some mechanism to ensure that acquired resources are freed if the program unexpectedly terminates.


HICPP VERSION 2.4  http://www.codingstandard.com   Copyright: © 2007 THE PROGRAMMING RESEARCH GROUP