If you can, use a try-catch block.
如果能,那么使用try - catch块。
In this case, you'll need to surround your code with a try catch block.
在这种情况下,需要用一个try catch程序块来包围代码。
Wrap a try block around the offending code, and catch any exceptions that are thrown.
将出错的代码包装在一个try块中,并捕捉抛出的异常。
Wrap a try block around the offending code, and catch any exceptions that are thrown.
将出错的代码包装在一个try块中,并捕捉抛出的异常。
应用推荐