jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r586810 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
Date Sat, 20 Oct 2007 21:53:19 GMT
Author: jukka
Date: Sat Oct 20 14:53:18 2007
New Revision: 586810

URL: http://svn.apache.org/viewvc?rev=586810&view=rev
Log:
JCR-1178: Rethrow exception with cause in BundleDbPersistenceManager
    - IllegalStateException(String, Throwable) is only available in Java 5

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java?rev=586810&r1=586809&r2=586810&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
Sat Oct 20 14:53:18 2007
@@ -604,7 +604,10 @@
             }
             return nameIndex;
         } catch (Exception e) {
-            throw new IllegalStateException("Unable to create nsIndex", e);
+            IllegalStateException exception =
+                new IllegalStateException("Unable to create nsIndex");
+            exception.initCause(e);
+            throw exception;
         }
     }
 



Mime
View raw message