Chapter 17: error handling – HP Integrity NonStop J-Series User Manual
Page 246

Click on the banner to return to the user guide home page.
©Copyright 1996 Rogue Wave Software
Chapter 17: Error Handling
Non-recoverable Internal Errors
The Debug Version of Tools.h++
Thinking about error handling is like anticipating root canal work - ten unpredictable, and
painful topic, one we prefer to avoid. Yet think about error handling we must, in order to write
robust code.
The Rogue Wave class libraries all use the same extensive and complete error handling facility.
In this model, errors are divided into two broad categories: internal and external. Internal
errors, which are further classified as either recoverable or non-recoverable, are due to errors in
the internal logic of the program. As you might expect, they can be difficult to recover from
and, indeed, the common default response is to abort the program. External errors are due to
events beyond the scope of the program. Any non-trivial program should be prepared to recover
from an external error.
The next section presents a table that summarizes the Rogue Wave error model. The sections
following the table discuss the types of errors in more detail.