Chris, and your example also works using raise new Exception("Something..") However, if you create your own sub-class of java.lang.Exception in JVM COBOL, which is what I am actually trying to raise in COBOL and catch in Java, it does not behave the same. class-id org.bulkhaul.cm.lang.exception.CmException public inherits type java.lang.Exception. working-storage section. method-id New. local-storage section. procedure division using by value msg as string. invoke super::New(msg) goback. end method. end class.
↧