At least three different ways to process errors (status codes, exceptions, SQLCODE etc is given in ObjectScript. Most systems have status, but for a range of reasons exceptions are more convenient to manage. You spend some time translating between the various techniques dealing with legacy code. For reference, I use several of these excerpts. It is hoped that they will also support others.
///Status from SQLCODE:set st = $$$ERROR($$$SQLError, SQLCODE, $g(%msg)) //embedded SQLset st = $$$ERROR($$$SQLError, rs.%SQLCODE, $g(rs..png)







A search for a Python related topic:

