You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2006/08/17 03:03:21 UTC
svn commit: r432093 -
/directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
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 );
}
}