%Status or %Library.Status provides a number of useful capabilities.
Following is documentation from the %Library.Status Class.
The %Status data type class is used to represent an error status code.
Many of the methods provided by the Caché Class Library return error status information using the %Status data type. The include file, %occStatus.INC, contains several macro definitions that are useful in testing the value of an error code in %Status format.
These macros include