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

Merge pull request #1280 from h2database/issue#1265.2

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