jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r745120 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java
Date Tue, 17 Feb 2009 15:30:32 GMT
Author: thomasm
Date: Tue Feb 17 15:30:30 2009
New Revision: 745120

URL: http://svn.apache.org/viewvc?rev=745120&view=rev
Log:
JCR-1982 Exception root cause is swallowed when on namespace index error

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java?rev=745120&r1=745119&r2=745120&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java
Tue Feb 17 15:30:30 2009
@@ -266,7 +266,9 @@
             }
             return nsIndex;
         } catch (Exception e) {
-            throw new IllegalStateException("Unable to create nsIndex.", e);
+            IllegalStateException e2 = new IllegalStateException("Unable to create nsIndex.");
+            e2.initCause(e);
+            throw e2;
         }
     }
 
@@ -282,7 +284,9 @@
             }
             return nameIndex;
         } catch (Exception e) {
-            throw new IllegalStateException("Unable to create nsIndex.", e);
+            IllegalStateException e2 = new IllegalStateException("Unable to create nameIndex.");
+            e2.initCause(e);
+            throw e2;
         }
     }
 



Mime
View raw message