Exception handling
Exception tunneling
Any exception, thrown in C++ or Java, will propagate up the stack, if necessary through multiple C++ and Java call frames.
You can catch and rethrow such exception at any time in either C++ or Java.
Use jni::vm_exception to catch Java exceptions in C++:
Use com.scapix.NativeException to catch C++ exceptions in Java: