JNI, cast between jobect and jthrowable
- by Dewfy
Dear colleagues,
I need raise an exception from C++ code. Raised exception must contain text and code of error.
So common form:
ThrowNew(jclass clazz, const char *msg)
is not applicable. That is why I want create my own instance of java class:
public class MyException extends Exception
that contains one more property for code. But JNI…