Catch Exceptions in Java

Jesse Liu liu_jianxiang at hotmail.com
Thu Aug 31 17:10:47 EDT 2000


If I raised an exception in JPthon and want to catch it, all I catch is
org.python.core.PyException, no matter what exception I raise, and whether
that is a Java exception or a JPython exception. More annoyingly,
getMessage() returns null in PyException. The real error message is appended
at end of toString() output, after a lengthy trace stack. Is there any work
around? Moreover, anyone can suggest a good place to find documentation
about JPython interacting with Java? Thanks.

Jesse Liu





More information about the Python-list mailing list