Example: default handling for lost database connections
If OpenEdge loses a database connection (for example, because a remote server failed), client processing might continue. In this case, the AVM:
Raises the STOP condition. The AVM ignores ON STOP phrases.,
Deletes any persistent procedures that reference the disconnected database.
Undoes blocks beginning with the innermost active block and working outward. It continues to undo blocks until it reaches a level above all references to tables or sequences in the lost database.
At this point, the AVM will honor any further ON STOP phrases you have coded.
Continues to undo blocks until it reaches an ON STOP phrase. If no ON STOP phrase is reached, it undoes all active blocks and restarts the top level procedure.