I am trying to throw java exception from jyton script, which is embeded in my java application using PythonInterpreter class.
At java side I want an access to the same instance of java exception that has been thrown from jython. But the only exception that I received is PyException which getCause returns null. How can I achieve this?

More precisely:

1) java exception:  
    public class MyException extends Exception

2) jython script:  
    raise MyException()

3) java application:
    PythonInterpreter interpreter = .....
   try {
    } catch(Exception e) {

In catch clause I got PyException. How can I access the instance of MyException from caught PyException??

Michal Tondyra