[Jepp-users] Changing the behavior of handled error
Brought to you by:
mrjohnson0
From: Fabrice I. <il...@ma...> - 2014-01-27 08:56:54
|
Hello, I'm trying to find a way to keep the traceback information after an error (unknown function/variable used error for instance). I saw in the code that removing the python error variables was a deliberate choice. I want, for my personal case, keep those variable but I can't get it to work. I don't know well about the API. In the C call process_py_exception(JNIEnv *env, int printTrace), I tried to add a PyErr_Restore(ptype, pvalue, ptrace) after PyErr_Fetch but it makes the JVM crash. Does anyone know how I can keep the value stored insys.exc_type,sys.exc_value andsys.exc_tracebackafter the execution of the process_py_exception call? Regards, Fabrice |