Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

5.4 FJ-JAVA-ERROR class

The adapter class generates the exception object when some error is detected during execution period. The FJ-JAVA-ERROR class is the class of that exception object. The exception message, exception type and exception information of Java can be acquired by using the FJ-JAVA-ERROR class method.

Refer to "NetCOBOL User's Guide" for details of the exception processing.

The FJ-JAVA-ERROR class has the following methods.

Table 5.2 Methods that Acquire Exception Information

Method name

Type

Function

GET-MESSAGE

Object

Returns the exception message.

GET-CODE

Object

Returns the type of exception

GET-EXCEPTION

Object

Returns the Java exception information.