Precedence of the ON phrase
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
ON phrases are at the bottom of the order of
precedence for handling errors. If another error handling construct is used,
specifically NO-ERROR or CATCH blocks, the ON phrase is ignored. If
there are CATCH blocks, but none of them are compatible
with the type of condition that occurs, then the ON
phrase takes effect (assuming NO-ERROR is not used on
the statement).
In general, the AVM performs error handling using this precedence, from highest to lowest. The AVM only abides by one of these when a condition is raised:
- Statement
NO-ERRORoption CATCHblock- Block’s
ONphrase (explicit or implicit)