directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1045150 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaLdifToPartitionExtractor.java
Date Mon, 13 Dec 2010 14:42:10 GMT
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 );
         }
     }
 



Mime
View raw message