Since the remote file may not exist yet, we need to catch the exception that Net: : SFTP will throw when we try to determine its timestamp.
由于远程文件可能不存在,所以我们需要捕捉当我们试图去查看一个不存在的文件的时间戳的时候Net: SFTP抛出的异常。
These contain information about all the try-catch blocks in the method, so you'll have to correlate the throw and catch information to identify the bug pattern.
它们包含关于方法中所有try - catch块的信息,所以您必须将抛出信息和捕获信息关联,以标识bug模式。
Without either of these options, the try and catch code can still execute, and the system does not call the destructors of local objects up to the throw statement.
如果不使用这两个选项,try和catch代码仍然可以执行,并且系统执行到throw语句时才会调用局部对象的析构函数。
应用推荐