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:

  1. Either an error indicator or an 'E' extender handler
  2. MONITOR group
  3. ILE condition handler
  4. I/O error subroutine handler (for file errors) and Program error subroutine handler (for all other errors)
  5. RPG default handler for unhandled exceptions (cycle-main procedure only)


[ Top of Page | Previous Page | Next Page | Contents | Index ]