修改异常包装策略:运行时异常不包装,只包装非运行时异常

This commit is contained in:
Looly
2023-08-08 19:03:49 +08:00
parent e66681936f
commit 170c083907
15 changed files with 37 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
package cn.hutool.extra.ftp;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.IORuntimeException;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.lang.Console;
import cn.hutool.extra.ssh.Sftp;
@@ -108,7 +109,7 @@ public class FtpTest {
}
}
} catch (final IOException e) {
throw new RuntimeException(e);
throw new IORuntimeException(e);
}
}