Info on JNI exception handling
843829Aug 3 2004 — edited Aug 4 2004Hi,
Consider the scenario where a Java app uses JNI for accessing native methods.
I found one documentation saying that whenever environment related calls are made on the native side like
env->FindClass (DI_PROP);
we have to call functions env->ExceptionOccurred(), env->ExceptionDescribe(env) and env->ExceptionClear(env).
Can some one explain why this is required? Also is there any way to get the error string from env->ExceptionDescribe(env) so that it can be assigned to some string variable in code?
Regards,
Harish