Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: Exception handling

$
0
0
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.

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>