[dna-commits] DNA SVN: r834 - trunk/dna-jcr/src/main/java/org/jboss/dna/jcr.

dna-commits at lists.jboss.org dna-commits at lists.jboss.org
Thu Apr 16 11:31:15 EDT 2009


Author: rhauch
Date: 2009-04-16 11:31:14 -0400 (Thu, 16 Apr 2009)
New Revision: 834

Modified:
   trunk/dna-jcr/src/main/java/org/jboss/dna/jcr/SessionCache.java
Log:
DNA-361 SessionCache Throws Wrong Exception Type For Invalid Item State

Applied the patch (removing the duplicate lines from a previous patch).

Modified: trunk/dna-jcr/src/main/java/org/jboss/dna/jcr/SessionCache.java
===================================================================
--- trunk/dna-jcr/src/main/java/org/jboss/dna/jcr/SessionCache.java	2009-04-16 15:26:06 UTC (rev 833)
+++ trunk/dna-jcr/src/main/java/org/jboss/dna/jcr/SessionCache.java	2009-04-16 15:31:14 UTC (rev 834)
@@ -336,7 +336,7 @@
             try {
                 operations.execute();
             } catch (org.jboss.dna.graph.property.PathNotFoundException e) {
-                throw new PathNotFoundException(e.getLocalizedMessage(), e);
+                throw new InvalidItemStateException(e.getLocalizedMessage(), e);
             } catch (RuntimeException e) {
                 throw new RepositoryException(e.getLocalizedMessage(), e);
             }
@@ -442,7 +442,7 @@
                 changedNodes.keySet().removeAll(uuidsUnderBranch);
                 deletedNodes.keySet().removeAll(uuidsUnderBranch);
             } catch (org.jboss.dna.graph.property.PathNotFoundException e) {
-                throw new PathNotFoundException(e.getLocalizedMessage(), e);
+                throw new InvalidItemStateException(e.getLocalizedMessage(), e);
             } catch (RuntimeException e) {
                 throw new RepositoryException(e.getLocalizedMessage(), e);
             }




More information about the dna-commits mailing list