directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r923832 - /directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
Date Tue, 16 Mar 2010 16:05:13 GMT
Author: kayyagari
Date: Tue Mar 16 16:05:13 2010
New Revision: 923832

URL: http://svn.apache.org/viewvc?rev=923832&view=rev
Log:
fixed the wrong exceptions

Modified:
    directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java

Modified: directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java?rev=923832&r1=923831&r2=923832&view=diff
==============================================================================
--- directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
(original)
+++ directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
Tue Mar 16 16:05:13 2010
@@ -28,9 +28,6 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.UUID;
 
-import javax.naming.InvalidNameException;
-import javax.naming.NamingException;
-
 import org.apache.directory.server.core.entry.ClonedServerEntry;
 import org.apache.directory.server.core.entry.DefaultServerEntry;
 import org.apache.directory.server.core.entry.ServerEntry;
@@ -53,6 +50,8 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.entry.Entry;
 import org.apache.directory.shared.ldap.exception.LdapException;
 import org.apache.directory.shared.ldap.exception.LdapInvalidDnException;
+import org.apache.directory.shared.ldap.exception.LdapNoSuchObjectException;
+import org.apache.directory.shared.ldap.ldif.LdapLdifException;
 import org.apache.directory.shared.ldap.ldif.LdifEntry;
 import org.apache.directory.shared.ldap.ldif.LdifReader;
 import org.apache.directory.shared.ldap.ldif.LdifUtils;
@@ -229,7 +228,7 @@ public class LdifPartition extends BTree
                 }
                 else
                 {
-                    throw new NamingException( I18n.err( I18n.ERR_632 ) );
+                    throw new LdapNoSuchObjectException( I18n.err( I18n.ERR_632 ) );
                 }
             }
 
@@ -1099,7 +1098,7 @@ public class LdifPartition extends BTree
     /**
      * @param contextEntry the contextEntry to set
      */
-    public void setContextEntry( String contextEntry ) throws NamingException
+    public void setContextEntry( String contextEntry ) throws LdapLdifException
     {
         LdifReader ldifReader = new LdifReader();
         List<LdifEntry> entries = ldifReader.parseLdif( contextEntry );



Mime
View raw message