提交 23c31aa6 authored 作者: Andrei Tokar's avatar Andrei Tokar

fix for #1265

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