directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r923865 - /directory/apacheds/trunk/core-mock/src/main/java/org/apache/directory/server/core/MockCoreSession.java
Date Tue, 16 Mar 2010 16:47:45 GMT
Author: kayyagari
Date: Tue Mar 16 16:47:44 2010
New Revision: 923865

URL: http://svn.apache.org/viewvc?rev=923865&view=rev
Log:
replaced jndi exception

Modified:
    directory/apacheds/trunk/core-mock/src/main/java/org/apache/directory/server/core/MockCoreSession.java

Modified: directory/apacheds/trunk/core-mock/src/main/java/org/apache/directory/server/core/MockCoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-mock/src/main/java/org/apache/directory/server/core/MockCoreSession.java?rev=923865&r1=923864&r2=923865&view=diff
==============================================================================
--- directory/apacheds/trunk/core-mock/src/main/java/org/apache/directory/server/core/MockCoreSession.java
(original)
+++ directory/apacheds/trunk/core-mock/src/main/java/org/apache/directory/server/core/MockCoreSession.java
Tue Mar 16 16:47:44 2010
@@ -25,8 +25,6 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
 
-import javax.naming.NamingException;
-
 import org.apache.directory.server.constants.ServerDNConstants;
 import org.apache.directory.server.core.changelog.LogChange;
 import org.apache.directory.server.core.entry.ClonedServerEntry;
@@ -53,6 +51,7 @@ import org.apache.directory.server.i18n.
 import org.apache.directory.shared.ldap.constants.AuthenticationLevel;
 import org.apache.directory.shared.ldap.entry.Modification;
 import org.apache.directory.shared.ldap.entry.Value;
+import org.apache.directory.shared.ldap.exception.LdapException;
 import org.apache.directory.shared.ldap.filter.ExprNode;
 import org.apache.directory.shared.ldap.filter.FilterParser;
 import org.apache.directory.shared.ldap.filter.SearchScope;
@@ -185,7 +184,7 @@ public class MockCoreSession implements 
     }
 
     
-    private Value<?> convertToValue( String oid, Object value ) throws NamingException
+    private Value<?> convertToValue( String oid, Object value ) throws LdapException
     {
         Value<?> val = null;
         
@@ -204,7 +203,7 @@ public class MockCoreSession implements 
             }
             else
             {
-                throw new NamingException( I18n.err( I18n.ERR_309, oid ) );
+                throw new LdapException( I18n.err( I18n.ERR_309, oid ) );
             }
         }
         else
@@ -219,7 +218,7 @@ public class MockCoreSession implements 
             }
             else
             {
-                throw new NamingException( I18n.err( I18n.ERR_309, oid ) );
+                throw new LdapException( I18n.err( I18n.ERR_309, oid ) );
             }
         }
         



Mime
View raw message