jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florent Guillaume (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1178) Rethrow exception with cause in BundleDbPersistenceManager
Date Wed, 17 Oct 2007 16:37:50 GMT
Rethrow exception with cause in BundleDbPersistenceManager
----------------------------------------------------------

                 Key: JCR-1178
                 URL: https://issues.apache.org/jira/browse/JCR-1178
             Project: Jackrabbit
          Issue Type: Improvement
          Components: jackrabbit-core
            Reporter: Florent Guillaume
            Priority: Trivial


An exception forwarded from SQL should have a cause for better diagnosis.

Index: jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
===================================================================
--- jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
(revision 585555)
+++ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.java
(working copy)
@@ -604,7 +604,7 @@
             }
             return nameIndex;
         } catch (Exception e) {
-            throw new IllegalStateException("Unable to create nsIndex: " + e);
+            throw new IllegalStateException("Unable to create nsIndex", e);
         }
     }
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message