From 2d998ac23ad4c8641c710018c8fc6d51ac0ef909 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 14 Jan 2012 02:39:33 +0000 Subject: [PATCH] As Jamie points out, we should use `pe` as the cause, rather than writing them out of the (chain of exception) inheritance. --- src/main/java/com/samskivert/depot/PersistenceContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/samskivert/depot/PersistenceContext.java b/src/main/java/com/samskivert/depot/PersistenceContext.java index ee89c09..d284267 100644 --- a/src/main/java/com/samskivert/depot/PersistenceContext.java +++ b/src/main/java/com/samskivert/depot/PersistenceContext.java @@ -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