Try OpenEdge Now
skip to main content
Error Handling
Raising errors with THROW : THROW as a default for blocks : Determining error-handling characteristics of r-code
 

Determining error-handling characteristics of r-code

To determine whether a given r-code file was compiled with either BLOCK-LEVEL ON ERROR UNDO, THROW or ROUTINE-LEVEL ON ERROR UNDO, THROW in effect (applied by using either a statement or the -undothrow parameter), inspect one of the following:
*The UNDO-THROW-SCOPE attribute of the RCODE-INFO system handle
*The COMPILE statement's XREF or XREF-XML output
* UNDO-THROW-SCOPE attribute
* XREF and XREF-XML output