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

5.4.3 GET-EXCEPTION method (object method)

Explanation

The Java exception information is returned.

Syntax

INVOKE EXCEPTION-OBJECT "GET-EXCEPTION" USING message messageLength class classLength RETURNING result

Parameter and return value

message (attribute: PIC X ANY LENGTH)

Specifies the data item that stores the Java exception message.

messageLength (attribute: PIC S9(9) COMP-5)

Length (number of bytes) of Java exception message is returned.

class (attribute: PIC X ANY LENGTH)

Specifies the data item that stores the Java exception class.

classLength (attribute: PIC S9(9) COMP-5)

Length (number of bytes) of Java exception message is returned.

result (attribute: PIC S9(9) COMP-5)

"0" is returned when Java exception information exists. "-1" is returned when Java exception information does not exist.

Note

The Java exception information can be acquired only when the exception type is "1".