Library structure
Each JCICS library component falls into one of four categories: Interfaces, Classes, Exceptions, or Errors.
- Interfaces
-
Some
interfaces are provided to define sets of constants. For example,
the TerminalSendBits interface provides a set of constants that can
be used to construct a
java.util.BitSet. - Classes
-
The
supplied classes provide most of the JCICS function. The
APIclass is an abstract class that provides common initialization for every class that corresponds to a part of the CICS API, except for ABENDs and exceptions. For example, theTaskclass provides a set of methods and variables that correspond to a CICS task. - Errors and Exceptions
-
The
Java language defines both exceptions and errors as subclasses of
the class
Throwable. JCICS definesCicsErroras a subclass ofError.CicsErroris the superclass for all the other CICS error classes, which are used for severe errors.JCICS defines
CicsExceptionas a subclass ofException.CicsExceptionis the superclass for all the CICS exception classes (including theCicsConditionExceptionclasses such asInvalidQueueIdException, which represents the CICS QIDERR condition).See Error handling and abnormal termination for further information.