PreviousthrowException Upjavasup

javasup Method throwNewException

Throws a new Java exception of class javaClassName and text description. Returns 0 if the method fails. After this method has been successfully invoked, the the COBOL method should not make further Java invocations until the exception has been handled.

javaClassName and description are null-terminated strings passed BY REFERENCE. javaClassName may be null or zero-length in order to throw a new mfcobol.COBOLException object.

See method exceptionOccurred.

See method exceptionClear.

See method throwException.

Using Parameters
javaClassName PIC X(256)
description PIC X(256)
Returning Parameter
success PIC S9(9) COMP-5