Using Exception Handlers

Planning the exception handling capability of your application means making the following decisions:

  1. Decide if you will use the RPG-specific means of handling errors (e.g., error indicator, 'E' extender, or error subroutine) or whether you will write a separate exception handling routine which you will register using the ILE API CEEHDLR. You might also choose to use both.
  2. Decide on the recovery action, that is, where the program will resume processing if you use a separate exception handling routine.

In addition, keep in mind the following when planning your exception handlers:



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