title: How to obtain a description of a Java exception in C++ when using JNI?
body: <p>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 exception:</p>
  
  <pre><code>JNIEnv * pEnv; // assume this is properly initialized
  jclass javaClass; // ditto
  jmethodID javaFunction; // ditto
  pEnv-&gt;CallStaticVoidMethod(javaClass, javaFunction);
  jthrowable exc;
  if(exc = pEnv-&gt;ExceptionOccurred())
  {
      pEnv-&gt;ExceptionClear();
  }
  </code></pre>
  
  <p>I do not know how to obtain descriptive information about the Java exception within this C++ code.  Can somebody help?</p>