P
Paul J. Lucas
What's the proper way to rethrow an exception in JNI?
int result = env->CallIntMethod(
obj, methID, arg
);
if ( jthrowable t = env->ExceptionOccurred() ) {
env->ExceptionClear(); // should this be called here?
env->Throw( t ); // what about this?
}
The JNI documetation I've seen doesn't talk about this. If all
one wants to to is "notice" the exception (but not really
"catch" it), what does one do? I don't really want to "catch"
it, just pass it back to the Java side.
- Paul
int result = env->CallIntMethod(
obj, methID, arg
);
if ( jthrowable t = env->ExceptionOccurred() ) {
env->ExceptionClear(); // should this be called here?
env->Throw( t ); // what about this?
}
The JNI documetation I've seen doesn't talk about this. If all
one wants to to is "notice" the exception (but not really
"catch" it), what does one do? I don't really want to "catch"
it, just pass it back to the Java side.
- Paul