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.