I use these code in my jython script
try: my_func() except Exception as e: print e pass But I still get exception such as
java.io.FileNotFoundException: java.io.FileNotFoundException: ./filename (No such file or directory) or
java.io.EOFException: java.io.EOFException How can I catch all these java exceptions in jython?
Env info:
jython version 2.7.1
java runtime 10.0.2