Unverified 提交 c98efe8f authored 作者: Andrei Tokar's avatar Andrei Tokar 提交者: GitHub

Merge pull request #1268 from h2database/issue#1265

fix for #1265
...@@ -371,15 +371,15 @@ public class TraceObject { ...@@ -371,15 +371,15 @@ public class TraceObject {
trace.error(e, "exception"); trace.error(e, "exception");
} }
} }
} catch(Throwable ignore) { } catch(Throwable another) {
if (e == null) { if (e == null) {
try { try {
e = new SQLException("GeneralError", "HY000", ErrorCode.GENERAL_ERROR_1, ex); e = new SQLException("GeneralError", "HY000", ErrorCode.GENERAL_ERROR_1, ex);
} catch (OutOfMemoryError ignored) { } catch (OutOfMemoryError | NoClassDefFoundError ignored) {
return DbException.SQL_OOME; return DbException.SQL_OOME;
} }
} }
e.addSuppressed(ignore); e.addSuppressed(another);
} }
return e; return e;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论