jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1389796 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/CommitFailedException.java
Date Tue, 25 Sep 2012 11:06:32 GMT
Author: mduerig
Date: Tue Sep 25 11:06:31 2012
New Revision: 1389796

URL: http://svn.apache.org/viewvc?rev=1389796&view=rev
Log:
comment

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/CommitFailedException.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/CommitFailedException.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/CommitFailedException.java?rev=1389796&r1=1389795&r2=1389796&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/CommitFailedException.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/CommitFailedException.java
Tue Sep 25 11:06:31 2012
@@ -53,10 +53,12 @@ public class CommitFailedException exten
         if (cause instanceof RepositoryException) {
             RepositoryException e;
             try {
+                // Try to preserve all parts of the stack trace
                 e = (RepositoryException) cause.getClass().getConstructor().newInstance();
                 e.initCause(this);
             }
             catch (Exception ex) {
+                // Fall back to the initial cause on failure
                 e = (RepositoryException) cause;
             }
 



Mime
View raw message