As Jamie points out, we should use pe as the cause, rather than writing them

out of the (chain of exception) inheritance.
This commit is contained in:
Michael Bayne
2012-01-14 02:39:33 +00:00
parent dbf0684567
commit 2d998ac23a
@@ -556,7 +556,7 @@ public class PersistenceContext
conn = _conprov.getConnection(_ident, isReadOnly);
} catch (PersistenceException pe) {
throw new DatabaseException("Failed get connection [ident=" + _ident +
", isRO=" + isReadOnly + "]", pe.getCause());
", isRO=" + isReadOnly + "]", pe);
}
// wrap the connection in a proxy that will collect all opened statements