![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The ON statement begins an exception handler. It includes the exception name and is coded in the exception handler portion of the rule. It can be followed by a sequence of actions that are executed if the exception is detected.
3. Action sequence numbers are not permitted within an ON statement or its following action statements.
1.
2.
• Example 1 traps the exception GETFAIL on the MANAGER table. If a GETFAIL occurs on the MANAGER table, the ENTER_MANAGER rule is called. If a GETFAIL occurs on another table, an error message is issued.
• Example 2 traps the exception DEFINITIONFAIL. If a DEFINITIONFAIL occurs, the shareable tool ENDMSG is called and a message is returned to the screen.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |