You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2010/12/13 15:42:10 UTC

svn commit: r1045150 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java

Author: seelmann
Date: Mon Dec 13 14:42:10 2010
New Revision: 1045150

URL: http://svn.apache.org/viewvc?rev=1045150&view=rev
Log:
o No two-arg IOException constructor in Java5
o Removed misleading comment

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java?rev=1045150&r1=1045149&r2=1045150&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java Mon Dec 13 14:42:10 2010
@@ -247,17 +247,15 @@ public class SchemaLdifToPartitionExtrac
         }
         catch ( LdapLdifException ne )
         {
-            // throw an exception : we should not have more than one entry per schema ldif file
             String msg = I18n.err( I18n.ERR_08004, source, ne.getLocalizedMessage() );
             LOG.error( msg );
-            throw new IOException( msg, ne );
+            throw new InvalidObjectException( msg );
         }
         catch ( LdapException ne )
         {
-            // throw an exception : we should not have more than one entry per schema ldif file
             String msg = I18n.err( I18n.ERR_08004, source, ne.getLocalizedMessage() );
             LOG.error( msg );
-            throw new IOException( msg, ne );
+            throw new InvalidObjectException( msg );
         }
     }