directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r432093 - /directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Date Thu, 17 Aug 2006 01:03:21 GMT
Author: ersiner
Date: Wed Aug 16 18:03:20 2006
New Revision: 432093

URL: http://svn.apache.org/viewvc?rev=432093&view=rev
Log:
Used LDAP counterpart of the exception class.

Modified:
    directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java?rev=432093&r1=432092&r2=432093&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Wed Aug 16 18:03:20 2006
@@ -41,6 +41,7 @@
 import org.apache.directory.server.core.schema.global.GlobalRegistries;
 import org.apache.directory.shared.ldap.exception.LdapAttributeInUseException;
 import org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException;
+import org.apache.directory.shared.ldap.exception.LdapInvalidAttributeValueException;
 import org.apache.directory.shared.ldap.exception.LdapNameNotFoundException;
 import org.apache.directory.shared.ldap.exception.LdapNamingException;
 import org.apache.directory.shared.ldap.exception.LdapNoSuchAttributeException;
@@ -1126,8 +1127,8 @@
 
         if ( attribute.size() > 1 && registry.lookup( attribute.getID() ).isSingleValue()
)
         {                
-            throw new InvalidAttributeValueException( "More than one value has been provided
" +
-                "for the single-valued attribute: " + attribute.getID() );
+            throw new LdapInvalidAttributeValueException( "More than one value has been provided
" +
+                "for the single-valued attribute: " + attribute.getID(), ResultCodeEnum.CONSTRAINTVIOLATION
);
         }
     }
 



Mime
View raw message