在使用C++ 编写jni程序时通过try{}catch(...){}经常会截获一些C++异常,我用什么方法来判断是什么异常呀!
try
{
...
jmethodID MethodID=this->GetEnv()->GetStaticMethodID(myclass,"mymun","()V");
}
catch(...)
{
print("has error");
//如何判断是什么错误。
}
try
{
...
jmethodID MethodID=this->GetEnv()->GetStaticMethodID(myclass,"mymun","()V");
}
catch(...)
{
print("has error");
//如何判断是什么错误。
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货