jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r804926 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImplBase.java
Date Mon, 17 Aug 2009 10:22:20 GMT
Author: stefan
Date: Mon Aug 17 10:22:20 2009
New Revision: 804926

URL: http://svn.apache.org/viewvc?rev=804926&view=rev
Log:
do not log error when legitimitly throwing a declared exception.

changed log entry to debug level and replaced UnsuppRepExc with VersionExc

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImplBase.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImplBase.java?rev=804926&r1=804925&r2=804926&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImplBase.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImplBase.java
Mon Aug 17 10:22:20 2009
@@ -27,6 +27,7 @@
 import javax.jcr.PropertyType;
 import javax.jcr.ItemNotFoundException;
 import javax.jcr.version.Version;
+import javax.jcr.version.VersionException;
 
 import org.apache.jackrabbit.core.HierarchyManager;
 import org.apache.jackrabbit.core.SessionImpl;
@@ -255,8 +256,8 @@
         InternalVersion baseVersion = getBaseVersion(root);
         if (baseVersion.isRootVersion()) {
             String msg = "Unable to checkin configuration as it has unversioned child node:
" + safeGetJCRPath(root);
-            log.error(msg);
-            throw new UnsupportedRepositoryOperationException(msg);
+            log.debug(msg);
+            throw new VersionException(msg);
         }
         baseVersions.add(baseVersion.getId());
 



Mime
View raw message