directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1066804 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClass.java
Date Thu, 03 Feb 2011 13:11:21 GMT
Author: pamarcelot
Date: Thu Feb  3 13:11:20 2011
New Revision: 1066804

URL: http://svn.apache.org/viewvc?rev=1066804&view=rev
Log:
Added more information about the error in the LdapSchemaException.

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClass.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClass.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClass.java?rev=1066804&r1=1066803&r2=1066804&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClass.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/schema/ObjectClass.java
Thu Feb  3 13:11:20 2011
@@ -196,6 +196,7 @@ public class ObjectClass extends Abstrac
                     LdapSchemaException ldapSchemaException = new LdapSchemaException(
                         LdapSchemaExceptionCodes.OC_NONEXISTENT_SUPERIOR, msg );
                     ldapSchemaException.setSourceObject( this );
+                    ldapSchemaException.setRelatedId( superiorName );
                     errors.add( ldapSchemaException );
                     return;
                 }
@@ -226,6 +227,7 @@ public class ObjectClass extends Abstrac
                         LdapSchemaException ldapSchemaException = new LdapSchemaException(
                             LdapSchemaExceptionCodes.OC_COLLECTIVE_NOT_ALLOWED_IN_MAY, msg
);
                         ldapSchemaException.setSourceObject( this );
+                        ldapSchemaException.setRelatedId( mayAttributeTypeName );
                         errors.add( ldapSchemaException );
                         break;
                     }
@@ -238,6 +240,7 @@ public class ObjectClass extends Abstrac
                         LdapSchemaException ldapSchemaException = new LdapSchemaException(
                             LdapSchemaExceptionCodes.OC_DUPLICATE_AT_IN_MAY, msg );
                         ldapSchemaException.setSourceObject( this );
+                        ldapSchemaException.setRelatedId( mayAttributeTypeName );
                         errors.add( ldapSchemaException );
                         break;
                     }
@@ -252,6 +255,7 @@ public class ObjectClass extends Abstrac
                     LdapSchemaException ldapSchemaException = new LdapSchemaException(
                         LdapSchemaExceptionCodes.OC_NONEXISTENT_MAY_AT, msg );
                     ldapSchemaException.setSourceObject( this );
+                    ldapSchemaException.setRelatedId( mayAttributeTypeName );
                     errors.add( ldapSchemaException );
                     break;
                 }
@@ -283,6 +287,7 @@ public class ObjectClass extends Abstrac
                         LdapSchemaException ldapSchemaException = new LdapSchemaException(
                             LdapSchemaExceptionCodes.OC_COLLECTIVE_NOT_ALLOWED_IN_MUST, msg
);
                         ldapSchemaException.setSourceObject( this );
+                        ldapSchemaException.setRelatedId( mustAttributeTypeName );
                         errors.add( ldapSchemaException );
                         break;
                     }
@@ -295,6 +300,7 @@ public class ObjectClass extends Abstrac
                         LdapSchemaException ldapSchemaException = new LdapSchemaException(
                             LdapSchemaExceptionCodes.OC_DUPLICATE_AT_IN_MUST, msg );
                         ldapSchemaException.setSourceObject( this );
+                        ldapSchemaException.setRelatedId( mustAttributeTypeName );
                         errors.add( ldapSchemaException );
                         break;
                     }
@@ -309,6 +315,7 @@ public class ObjectClass extends Abstrac
                             LdapSchemaExceptionCodes.OC_DUPLICATE_AT_IN_MAY_AND_MUST,
                             msg );
                         ldapSchemaException.setSourceObject( this );
+                        ldapSchemaException.setRelatedId( mustAttributeTypeName );
                         errors.add( ldapSchemaException );
                         break;
                     }
@@ -323,6 +330,7 @@ public class ObjectClass extends Abstrac
                     LdapSchemaException ldapSchemaException = new LdapSchemaException(
                         LdapSchemaExceptionCodes.OC_NONEXISTENT_MUST_AT, msg );
                     ldapSchemaException.setSourceObject( this );
+                    ldapSchemaException.setRelatedId( mustAttributeTypeName );
                     errors.add( ldapSchemaException );
                     break;
                 }



Mime
View raw message