jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r418710 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Date Mon, 03 Jul 2006 08:36:57 GMT
Author: stefan
Date: Mon Jul  3 01:36:57 2006
New Revision: 418710

URL: http://svn.apache.org/viewvc?rev=418710&view=rev
Log:
explicitly 'translate' ItemNotFoundException to PathNotFoundException 
for better readability of the code (redundant since already taken care
of by resolveRelativeNodePath() call)

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

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=418710&r1=418709&r2=418710&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java (original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java Mon
Jul  3 01:36:57 2006
@@ -2421,6 +2421,8 @@
             return (Node) itemMgr.getItem(id);
         } catch (AccessDeniedException ade) {
             throw new PathNotFoundException(relPath);
+        } catch (ItemNotFoundException infe) {
+            throw new PathNotFoundException(relPath);
         }
     }
 
@@ -2492,6 +2494,8 @@
         }
         try {
             return (Property) itemMgr.getItem(id);
+        } catch (ItemNotFoundException infe) {
+            throw new PathNotFoundException(relPath);
         } catch (AccessDeniedException ade) {
             throw new PathNotFoundException(relPath);
         }



Mime
View raw message