Try OpenEdge Now
skip to main content
Error Handling
STOP and QUIT Condition Handling : STOP condition handling : Default handling : Example: default handling for lost database connections
 
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.