Capture the output of ExceptionDescribe

I have some C++ code which calls Java code through the Invocation API:

jType type = env->SomeJNICall();

if ( type == NULL || env->ExceptionOccurred() )

env->ExceptionDescribe();

Instead of spitting out the exception description to stdout (or stderr?) is there a way of capturing the text and putting it into a std::string or copying it into a memory location pointed to by a char *?

Thanks!

[469 byte] By [caffeinea] at [2007-11-26 14:43:54]
# 1
I believe the API can be used to return the actual exception. With that, you can get its class, and with its class you can call methods of the exception object. (All, of course, via JNI.)
bschauwejavaa at 2007-7-8 8:31:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...