Exception Handler Priority
Exception handler priority becomes important if you use both language-specific
error handling and ILE condition handlers. For an ILE RPG procedure, exception
handlers have the following priority:
- Either an error indicator or an 'E' extender handler
- MONITOR group
- ILE condition handler
- I/O error subroutine handler (for file errors) and Program error subroutine handler (for all other errors)
- RPG default handler for unhandled exceptions (cycle-main procedure only)