|
From: Michal T. <MTo...@co...> - 2006-01-30 16:53:52
|
Hello,
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 {
interpreter.execfile(_stream_with_jython_script);
} catch(Exception e) {
}
In catch clause I got PyException. How can I access the instance of
MyException from caught PyException??
--
regards,
Michal Tondyra |