Referring to last error
Error handling in OSI is different from error handling in C++ or C#. OSI supports different options in order to control null value and exception handling. The #NULLVALUE or #EXCEPTION statement allow ignoring or accepting exceptions or null values, but also raising an exception.
In case of raising an exception, control is passed to the next FINAL block defined in the calling hierarchy. When ignoring or accepting the null value or exception, one may check the exception by calling the _LastException variable, which is a global variable containing the last odaba::Exception raised or the last application exception thrown by the EXCEPTION() statement.