Exceptions and error handling

In the classes provided in the SOM run-time library (that is, SOMClass, SOMObject, and SOMClassMgr), error handling is performed by a user-replaceable procedure, pointed to by the global variable SOMError, that produces an error message and an error code and, if appropriate ate, ends the process where the error occurred. (Chapter 5 describes how to customize the error handling procedure.)

Each error is assigned a unique integer error code. Errors are grouped into three categories, based on the last digit of the error code: