Upgrade Guides for Genero BDL / 2.51 upgrade guide |
Errors are no longer logged when raised in a TRY/CATCH block.
Before version 2.51, exceptions occuring in a TRY/CATCH block were logged if the error log is initiated with the startlog() function. With version 2.51, if an exception is raised in a TRY/CATCH block, it will no longer be logged in the error log file. In other words, the TRY/CATCH block will behave like WHENEVER ERROR CONTINUE, regarding error logging.
Example:
CALL startlog("errors.txt") ... TRY INSERT INTO customer ... CATCH -- Handle errors and write to error log with errorlog() if needed. IF SQLCA.SQLCODE == -8634 THEN ... END IF END TRY