directory-commits mailing list archives

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

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

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

Modified: directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java?rev=432092&r1=432091&r2=432092&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
(original)
+++ directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Wed Aug 16 18:03:00 2006
@@ -40,6 +40,7 @@
 import org.apache.directory.server.core.partition.PartitionNexus;
 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;
@@ -1125,8 +1126,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