If you can, use a try-catch block.
如果能,那么使用try - catch块。
PMD flagged this as an empty catch block.
PMD把这标记为空catch块。
In this case, you'll need to surround your code with a try catch block.
在这种情况下,需要用一个trycatch程序块来包围代码。
First, multiple exception types can be named as being handled by a single catch block.
首先,一个catch块中可以处理多个指定类型的异常。
Catch block, and that you call the close method on your connection inside a finally block.
catch块中,而且在finally块中在连接上调用close方法。
Wrap a try block around the offending code, and catch any exceptions that are thrown.
将出错的代码包装在一个try块中,并捕捉抛出的异常。
The policeman saw a man halfway down the block running to catch a car.
警察看见半条街外有一个人跑步去赶汽车。
The policeman saw a man halfway down the block running to catch a car.
警察看见半条街外有一个人跑步去赶汽车。
应用推荐