I would like to determine what exception has been thrown by a Java function when calling that function from C++ code using JNI. I have the following code that catches the Java
The easy way out of this is to declare the JNI method to throw all possible exceptions, then:
jthrowable throwable = ExceptionOccurred(env); if (throwable != NULL) Throw(env, throwable);
and let your Java code deal with it.