directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r664017 - /directory/apacheds/branches/bigbang/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java
Date Fri, 06 Jun 2008 16:23:44 GMT
Author: elecharny
Date: Fri Jun  6 09:23:44 2008
New Revision: 664017

URL: http://svn.apache.org/viewvc?rev=664017&view=rev
Log:
Replaced a generic NamingException by a more specific exception to avoid a server breakage.

Modified:
    directory/apacheds/branches/bigbang/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java

Modified: directory/apacheds/branches/bigbang/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java?rev=664017&r1=664016&r2=664017&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java
(original)
+++ directory/apacheds/branches/bigbang/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java
Fri Jun  6 09:23:44 2008
@@ -28,6 +28,7 @@
 import java.util.Set;
 
 import javax.naming.NamingException;
+import javax.naming.directory.NoSuchAttributeException;
 
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.schema.AttributeType;
@@ -194,7 +195,7 @@
 
         if ( !byOid.containsKey( oid ) )
         {
-            throw new NamingException( "attributeType w/ OID " + oid + " not registered!"
);
+            throw new NoSuchAttributeException( "attributeType w/ OID " + oid + " not registered!"
);
         }
 
         AttributeType attributeType = byOid.get( oid );



Mime
View raw message