Hello,
I have JNI layer in my application. In some cases JAVA throws an Exception. How can I get JAVA exception in JNI layer. I have the code something like as follows.
if((*(pConnDA->penv))->ExceptionCheck(pConnDA->penv))
{
(*(pConnDA->penv))->ExceptionDescribe(pConnDA->penv);
(*(pConnDA->penv))->ExceptionClear(pConnDA->penv);
}
Is this block of code will catch only JNI exceptions? Where exception description will log in console(stderr)? How get this into buffer, so that i can pass to my logger module.
Thanks in Advance, Chandu