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
If you are just interested in the stack trace of the exception you can:
if (env->ExceptionOccurred()) // check if an exception occurred { env->ExceptionDescribe(); // print the stack trace }