提交 2c27f0a3 authored 作者: Andrei Tokar's avatar Andrei Tokar

try to preload DBException class to be used in OOME handling

上级 d20a519e
......@@ -105,6 +105,8 @@ public class TraceObject {
"rs", "rsMeta", "sp", "ex", "stat", "blob", "clob", "pMeta", "ds",
"xads", "xares", "xid", "ar", "sqlxml" };
private static final SQLException SQL_OOME = DbException.SQL_OOME;
/**
* The trace module used by this object.
*/
......@@ -376,7 +378,7 @@ public class TraceObject {
try {
e = new SQLException("GeneralError", "HY000", ErrorCode.GENERAL_ERROR_1, ex);
} catch (OutOfMemoryError | NoClassDefFoundError ignored) {
return DbException.SQL_OOME;
return SQL_OOME;
}
}
e.addSuppressed(another);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论