openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r604981 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java
Date Mon, 17 Dec 2007 20:06:45 GMT
Author: pcl
Date: Mon Dec 17 12:06:44 2007
New Revision: 604981

URL: http://svn.apache.org/viewvc?rev=604981&view=rev
Log:
Error message improvement: include nested exception in constructor.

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java?rev=604981&r1=604980&r2=604981&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java
Mon Dec 17 12:06:44 2007
@@ -144,7 +144,7 @@
                     getUserObject(EM_KEY);
             } catch (ClassCastException cce) {
                 throw new ArgumentException(_loc.get("cant-convert-broker", c),
-                    null, null, false);
+                    new Throwable[] { cce }, null, false);
             }
         }
         return ((EntityManagerImpl) em).getBroker();



Mime
View raw message