jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chet...@apache.org
Subject svn commit: r1506877 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
Date Thu, 25 Jul 2013 10:46:38 GMT
Author: chetanm
Date: Thu Jul 25 10:46:38 2013
New Revision: 1506877

URL: http://svn.apache.org/r1506877
Log:
JCR-3628 - Embed cause in getNodeByIdentifier while rethrowing IllegalArgumentException
 
Passing the exception as part of root cause. Would allow client to differentiate invalidId
from other RepositoryException

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java?rev=1506877&r1=1506876&r2=1506877&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
Thu Jul 25 10:46:38 2013
@@ -1097,7 +1097,7 @@ public class SessionImpl extends Abstrac
         try {
             nodeId = NodeId.valueOf(id);
         } catch (IllegalArgumentException iae) {
-            throw new RepositoryException("invalid identifier: " + id);
+            throw new RepositoryException("invalid identifier: " + id,iae);
         }
         return getNodeById(nodeId);
     }



Mime
View raw message