提交 d52e22e3 编写于 作者: Z zhourui

fix

上级 80869fd0
......@@ -20,7 +20,7 @@ public class Exit {
}
}
private static String getBasePath() throws Exception {
private static String getBasePath() {
String path = Exit.class.getProtectionDomain().getCodeSource().getLocation().getPath();
File file = new File(path);
if (!file.isDirectory()) {
......@@ -33,7 +33,7 @@ public class Exit {
}
file = file.getParentFile();
}
throw new Exception("can not define o2server base directory.");
throw new IllegalStateException("can not define o2server base directory.");
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册