CICS error-handling commands

CICS® condition handling is integrated into the Java™ exception-handling architecture, as described in CICS exception handling in JCICS programs.

The Java equivalent to the EXEC CICS error handling commands are as follows:

HANDLE ABEND
To handle an ABEND generated by a program in any CICS supported language, use a Java try-catch statement, with AbendException appearing in a catch clause.
HANDLE CONDITION
To handle a specific condition, such as PGMIDERR, use a catch clause that names the appropriate exception; in this case InvalidProgramException. Alternatively, use a catch clause that names CicsConditionException , if all CICS conditions are to be caught.
IGNORE CONDITION
This command is not relevant in Java applications.
POP HANDLE and PUSH HANDLE
These commands are not relevant in Java applications. The Java exceptions that are used to represent CICS ABENDs and conditions are caught by any catch block in scope.