Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23C256CA8 for ; Sun, 22 May 2011 23:11:29 +0000 (UTC) Received: (qmail 32827 invoked by uid 500); 22 May 2011 23:11:29 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 32793 invoked by uid 500); 22 May 2011 23:11:29 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 32786 invoked by uid 99); 22 May 2011 23:11:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 May 2011 23:11:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 May 2011 23:11:27 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 53D102388A38; Sun, 22 May 2011 23:11:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1126274 [2/2] - in /directory/shared/trunk/ldap: client/api/src/main/java/org/apache/directory/ldap/client/api/ client/api/src/main/java/org/apache/directory/ldap/client/api/exception/ model/src/main/java/org/apache/directory/shared/ldap/m... Date: Sun, 22 May 2011 23:11:06 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110522231107.53D102388A38@eris.apache.org> Modified: directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/shared/ldap/schemaloader/SchemaEntityFactory.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/shared/ldap/schemaloader/SchemaEntityFactory.java?rev=1126274&r1=1126273&r2=1126274&view=diff ============================================================================== --- directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/shared/ldap/schemaloader/SchemaEntityFactory.java (original) +++ directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/shared/ldap/schemaloader/SchemaEntityFactory.java Sun May 22 23:11:04 2011 @@ -30,9 +30,9 @@ import org.apache.directory.shared.asn1. import org.apache.directory.shared.i18n.I18n; import org.apache.directory.shared.ldap.model.constants.MetaSchemaConstants; import org.apache.directory.shared.ldap.model.constants.SchemaConstants; +import org.apache.directory.shared.ldap.model.entry.Attribute; import org.apache.directory.shared.ldap.model.entry.DefaultAttribute; import org.apache.directory.shared.ldap.model.entry.Entry; -import org.apache.directory.shared.ldap.model.entry.Attribute; import org.apache.directory.shared.ldap.model.entry.Value; import org.apache.directory.shared.ldap.model.exception.LdapException; import org.apache.directory.shared.ldap.model.exception.LdapInvalidAttributeValueException; @@ -342,7 +342,7 @@ public class SchemaEntityFactory impleme } catch ( Exception e ) { - throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage() ); + throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage(), e ); } } @@ -428,7 +428,7 @@ public class SchemaEntityFactory impleme if ( !comparator.getOid().equals( oid ) ) { String msg = I18n.err( I18n.ERR_10015, oid, comparator.getOid() ); - throw new LdapInvalidAttributeValueException( ResultCodeEnum.UNWILLING_TO_PERFORM, msg ); + throw new LdapInvalidAttributeValueException( ResultCodeEnum.UNWILLING_TO_PERFORM, msg, nsme ); } } @@ -531,7 +531,7 @@ public class SchemaEntityFactory impleme } catch ( Exception e ) { - throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage() ); + throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage(), e ); } } @@ -662,7 +662,7 @@ public class SchemaEntityFactory impleme } catch ( Exception e ) { - throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage() ); + throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage(), e ); } }