6.2.1 检查异常(Checking for Exceptions) 当"JNI"函数返回一个清晰的错误代码时,本地代码任然可以明显地通过调用,例如"ExceptionCheck",来检查异常。
基于16个网页-相关网页
checking for exceptions
检查异常
以上为机器翻译结果,长、整句建议使用 人工翻译 。
A common pitfall, similar to not checking for exceptions, is to fail to check the return value and for the code to proceed on the assumption that the call was successful.
与未检测异常相似,这也存在一个缺陷,即代码未检测返回值却假定调用成功而继续运行。
youdao
应用推荐
模块上移
模块下移
不移动