directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1134019 - in /directory: apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/ apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ apacheds/trunk/core-api/src/main/java/org/apache/directory/s...
Date Thu, 09 Jun 2011 17:59:46 GMT
Author: elecharny
Date: Thu Jun  9 17:59:44 2011
New Revision: 1134019

URL: http://svn.apache.org/viewvc?rev=1134019&view=rev
Log:
Popagated the original exception as a cause in the newly thrown exception. This will address DIRSERVER-1299

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveAndRenameOperationContext.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveOperationContext.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/partition/AbstractPartition.java
    directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/ReferralManagerImpl.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/GroupCache.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/TupleCache.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/MaxImmSubFilter.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/PartitionSchemaLoader.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/sp/StoredProcExecutionManager.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java
    directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java
    directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
    directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplRequestHandler.java
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/avl/AvlPartition.java
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java
    directory/shared/trunk/asn1/ber/src/main/java/org/apache/directory/shared/asn1/actions/AbstractReadInteger.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java (original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java Thu Jun  9 17:59:44 2011
@@ -151,7 +151,7 @@ public class LdapCoreSessionConnection i
         }
         catch ( Exception e )
         {
-            throw new IOException( e.getMessage() );
+            throw new IOException( e.getMessage(), e );
         }
 
         return true;

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java (original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java Thu Jun  9 17:59:44 2011
@@ -95,7 +95,7 @@ public final class LdapPrincipalSerializ
         }
         catch ( ClassNotFoundException cnfe )
         {
-            throw new IOException( cnfe.getMessage() );
+            throw new IOException( cnfe.getMessage(), cnfe );
         }
         
         LdapPrincipal principal = new LdapPrincipal( schemaManager, dn, authenticationLevel );

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java (original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java Thu Jun  9 17:59:44 2011
@@ -114,7 +114,7 @@ public final class ChangeLogEventSeriali
         }
         catch ( ClassNotFoundException cnfe )
         {
-            throw new IOException( cnfe.getMessage() );
+            throw new IOException( cnfe.getMessage(), cnfe );
         }
         
         // The reverse LDIFs number
@@ -132,7 +132,7 @@ public final class ChangeLogEventSeriali
             }
             catch ( ClassNotFoundException cnfe )
             {
-                throw new IOException( cnfe.getMessage() );
+                throw new IOException( cnfe.getMessage(), cnfe );
             }
             
             reverses.add( reverseEntry );

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveAndRenameOperationContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveAndRenameOperationContext.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveAndRenameOperationContext.java (original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveAndRenameOperationContext.java Thu Jun  9 17:59:44 2011
@@ -68,7 +68,7 @@ public class MoveAndRenameOperationConte
         }
         catch ( LdapInvalidDnException lide )
         {
-            throw new IllegalArgumentException( lide.getMessage() );
+            throw new IllegalArgumentException( lide.getMessage(), lide );
         }
     }
 

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveOperationContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveOperationContext.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveOperationContext.java (original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/interceptor/context/MoveOperationContext.java Thu Jun  9 17:59:44 2011
@@ -76,7 +76,7 @@ public class MoveOperationContext extend
         }
         catch ( LdapInvalidDnException lide )
         {
-            throw new IllegalArgumentException( lide.getMessage() );
+            throw new IllegalArgumentException( lide.getMessage(), lide );
         }
     }
 
@@ -116,7 +116,7 @@ public class MoveOperationContext extend
         }
         catch ( LdapInvalidDnException lide )
         {
-            throw new IllegalArgumentException( lide.getMessage() );
+            throw new IllegalArgumentException( lide.getMessage(), lide );
         }
     }
 

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/partition/AbstractPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/partition/AbstractPartition.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/partition/AbstractPartition.java (original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/partition/AbstractPartition.java Thu Jun  9 17:59:44 2011
@@ -75,7 +75,7 @@ public abstract class AbstractPartition 
         }
         catch ( Exception e )
         {
-            throw new LdapOtherException( e.getMessage() );
+            throw new LdapOtherException( e.getMessage(), e );
         }
         finally
         {
@@ -87,7 +87,7 @@ public abstract class AbstractPartition 
                 }
                 catch ( Exception e )
                 {
-                    throw new LdapOtherException( e.getMessage() );
+                    throw new LdapOtherException( e.getMessage(), e );
                 }
             }
         }

Modified: directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java (original)
+++ directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java Thu Jun  9 17:59:44 2011
@@ -97,10 +97,10 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.model.cursor.EmptyCursor;
 import org.apache.directory.shared.ldap.model.cursor.SingletonCursor;
+import org.apache.directory.shared.ldap.model.entry.Attribute;
 import org.apache.directory.shared.ldap.model.entry.AttributeUtils;
 import org.apache.directory.shared.ldap.model.entry.DefaultEntry;
 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.Modification;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.LdapInvalidAttributeTypeException;

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java Thu Jun  9 17:59:44 2011
@@ -928,7 +928,7 @@ public class DefaultDirectoryService imp
         }
         catch ( Exception e )
         {
-            throw new LdapOperationException( e.getMessage() );
+            throw new LdapOperationException( e.getMessage(), e );
         }
 
         return changeLog.getCurrentRevision();

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java Thu Jun  9 17:59:44 2011
@@ -43,8 +43,8 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.invocation.InvocationStack;
 import org.apache.directory.server.i18n.I18n;
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
-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.Entry;
 import org.apache.directory.shared.ldap.model.entry.Value;
 import org.apache.directory.shared.ldap.model.exception.LdapAffectMultipleDsaException;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
@@ -113,7 +113,7 @@ public class DefaultOperationManager imp
         }
         catch ( LdapURLEncodingException luee )
         {
-            throw new LdapOperationErrorException( luee.getMessage() );
+            throw new LdapOperationErrorException( luee.getMessage(), luee );
         }
 
         // Return with an exception

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/ReferralManagerImpl.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/ReferralManagerImpl.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/ReferralManagerImpl.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/ReferralManagerImpl.java Thu Jun  9 17:59:44 2011
@@ -29,7 +29,7 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.interceptor.context.SearchOperationContext;
 import org.apache.directory.server.core.partition.PartitionNexus;
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
-import org.apache.directory.shared.ldap.model.entry.*;
+import org.apache.directory.shared.ldap.model.entry.Entry;
 import org.apache.directory.shared.ldap.model.entry.StringValue;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.LdapOperationException;
@@ -190,7 +190,7 @@ public class ReferralManagerImpl impleme
             }
             catch ( Exception e )
             {
-                throw new LdapOperationException( e.getMessage() );
+                throw new LdapOperationException( e.getMessage(), e );
             }
         }
     }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java Thu Jun  9 17:59:44 2011
@@ -66,9 +66,9 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.partition.PartitionNexus;
 import org.apache.directory.shared.ldap.model.constants.AuthenticationLevel;
 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.Modification;
 import org.apache.directory.shared.ldap.model.entry.Value;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
@@ -788,7 +788,7 @@ public class AdministrativePointIntercep
         }
         catch ( Exception e )
         {
-            throw new LdapOperationException( e.getMessage() );
+            throw new LdapOperationException( e.getMessage(), e );
         }
 
         return entries;

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java Thu Jun  9 17:59:44 2011
@@ -380,7 +380,7 @@ public class AuthenticationInterceptor e
                 }
 
                 // throw exception if userPassword quality checks fail
-                throw new LdapOperationException( ResultCodeEnum.CONSTRAINT_VIOLATION, e.getMessage() );
+                throw new LdapOperationException( ResultCodeEnum.CONSTRAINT_VIOLATION, e.getMessage(), e );
             }
 
             String pwdChangedTime = DateUtils.getGeneralizedTime();
@@ -608,7 +608,7 @@ public class AuthenticationInterceptor e
                     }
 
                     // throw exception if userPassword quality checks fail
-                    throw new LdapOperationException( ResultCodeEnum.CONSTRAINT_VIOLATION, e.getMessage() );
+                    throw new LdapOperationException( ResultCodeEnum.CONSTRAINT_VIOLATION, e.getMessage(), e );
                 }
             }
 

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java Thu Jun  9 17:59:44 2011
@@ -211,7 +211,7 @@ public class AciAuthorizationInterceptor
         }
         catch ( Exception e )
         {
-            throw new LdapOperationException( e.getMessage() );
+            throw new LdapOperationException( e.getMessage(), e );
         }
     }
 
@@ -257,7 +257,7 @@ public class AciAuthorizationInterceptor
         }
         catch ( Exception e )
         {
-            throw new LdapOperationException( e.getMessage() );
+            throw new LdapOperationException( e.getMessage(), e );
         }
     }
 

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/GroupCache.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/GroupCache.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/GroupCache.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/GroupCache.java Thu Jun  9 17:59:44 2011
@@ -183,7 +183,7 @@ public class GroupCache
             }
             catch ( Exception e )
             {
-                LdapOperationException le = new LdapOperationException( e.getMessage() );
+                LdapOperationException le = new LdapOperationException( e.getMessage(), e );
                 le.initCause( e );
                 throw le;
             }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/TupleCache.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/TupleCache.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/TupleCache.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/TupleCache.java Thu Jun  9 17:59:44 2011
@@ -162,7 +162,7 @@ public class TupleCache
             }
             catch ( Exception e )
             {
-                throw new LdapOperationErrorException( e.getMessage() );
+                throw new LdapOperationErrorException( e.getMessage(), e );
             }
         }
     }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/MaxImmSubFilter.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/MaxImmSubFilter.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/MaxImmSubFilter.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/MaxImmSubFilter.java Thu Jun  9 17:59:44 2011
@@ -183,7 +183,7 @@ public class MaxImmSubFilter implements 
             }
             catch ( Exception e )
             {
-                throw new LdapOtherException( e.getMessage() );
+                throw new LdapOtherException( e.getMessage(), e );
             }
         }
         finally
@@ -196,7 +196,7 @@ public class MaxImmSubFilter implements 
                 }
                 catch ( Exception e )
                 {
-                    throw new LdapOperationException( e.getMessage() );
+                    throw new LdapOperationException( e.getMessage(), e );
                 }
             }
         }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java Thu Jun  9 17:59:44 2011
@@ -138,7 +138,7 @@ public class DefaultChangeLog implements
         }
         catch ( Exception e )
         {
-            throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage() );
+            throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage(), e );
         }
     }
 
@@ -159,7 +159,7 @@ public class DefaultChangeLog implements
         }
         catch ( Exception e )
         {
-            throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage() );
+            throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, e.getMessage(), e );
         }
     }
 

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java Thu Jun  9 17:59:44 2011
@@ -1016,7 +1016,7 @@ public class DefaultPartitionNexus exten
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/PartitionSchemaLoader.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/PartitionSchemaLoader.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/PartitionSchemaLoader.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/PartitionSchemaLoader.java Thu Jun  9 17:59:44 2011
@@ -35,8 +35,8 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.partition.Partition;
 import org.apache.directory.server.i18n.I18n;
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
-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.Entry;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException;
 import org.apache.directory.shared.ldap.model.exception.LdapOtherException;
@@ -284,7 +284,7 @@ public class PartitionSchemaLoader exten
             }
             catch ( Exception e )
             {
-                throw new LdapOtherException( e.getMessage() );
+                throw new LdapOtherException( e.getMessage(), e );
             }
         }
 
@@ -328,7 +328,7 @@ public class PartitionSchemaLoader exten
             }
             catch ( Exception e )
             {
-                throw new LdapOtherException( e.getMessage() );
+                throw new LdapOtherException( e.getMessage(), e );
             }
         }
 
@@ -396,7 +396,7 @@ public class PartitionSchemaLoader exten
             }
             catch ( Exception e )
             {
-                throw new LdapOtherException( e.getMessage() );
+                throw new LdapOtherException( e.getMessage(), e );
             }
         }
 
@@ -464,7 +464,7 @@ public class PartitionSchemaLoader exten
             }
             catch ( Exception e )
             {
-                throw new LdapOtherException( e.getMessage() );
+                throw new LdapOtherException( e.getMessage(), e );
             }
         }
 
@@ -508,7 +508,7 @@ public class PartitionSchemaLoader exten
             }
             catch ( Exception e )
             {
-                throw new LdapOtherException( e.getMessage() );
+                throw new LdapOtherException( e.getMessage(), e );
             }
         }
 
@@ -552,7 +552,7 @@ public class PartitionSchemaLoader exten
             }
             catch ( Exception e )
             {
-                throw new LdapOtherException( e.getMessage() );
+                throw new LdapOtherException( e.getMessage(), e );
             }
         }
 
@@ -596,7 +596,7 @@ public class PartitionSchemaLoader exten
             }
             catch ( Exception e )
             {
-                throw new LdapOtherException( e.getMessage() );
+                throw new LdapOtherException( e.getMessage(), e );
             }
         }
 

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/sp/StoredProcExecutionManager.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/sp/StoredProcExecutionManager.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/sp/StoredProcExecutionManager.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/sp/StoredProcExecutionManager.java Thu Jun  9 17:59:44 2011
@@ -31,7 +31,7 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.filtering.EntryFilteringCursor;
 import org.apache.directory.server.i18n.I18n;
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
-import org.apache.directory.shared.ldap.model.entry.*;
+import org.apache.directory.shared.ldap.model.entry.Entry;
 import org.apache.directory.shared.ldap.model.entry.StringValue;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.filter.EqualityNode;
@@ -128,13 +128,13 @@ public class StoredProcExecutionManager
                 }
                 catch ( InstantiationException e )
                 {
-                    LdapException ne = new LdapException( e.getMessage() );
+                    LdapException ne = new LdapException( e.getMessage(), e );
                     ne.initCause( e );
                     throw ne;
                 }
                 catch ( IllegalAccessException e )
                 {
-                    LdapException ne = new LdapException( e.getMessage() );
+                    LdapException ne = new LdapException( e.getMessage(), e );
                     ne.initCause( e );
                     throw ne;
                 }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java Thu Jun  9 17:59:44 2011
@@ -250,7 +250,7 @@ public class SubentryInterceptor extends
             }
             catch ( Exception e )
             {
-                throw new LdapOperationException( e.getMessage() );
+                throw new LdapOperationException( e.getMessage(), e );
             }
         }
     }
@@ -374,7 +374,7 @@ public class SubentryInterceptor extends
         }
         catch ( Exception e )
         {
-            throw new LdapOtherException( e.getMessage() );
+            throw new LdapOtherException( e.getMessage(), e );
         }
     }
 
@@ -463,7 +463,7 @@ public class SubentryInterceptor extends
         }
         catch ( Exception e )
         {
-            throw new LdapOperationException( e.getMessage() );
+            throw new LdapOperationException( e.getMessage(), e );
         }
 
 
@@ -1088,7 +1088,7 @@ public class SubentryInterceptor extends
             }
             catch ( Exception e )
             {
-                throw new LdapOperationErrorException( e.getMessage() );
+                throw new LdapOperationErrorException( e.getMessage(), e );
             }
 
             // search for all selected entries by the new SS and add references to subentry
@@ -1118,7 +1118,7 @@ public class SubentryInterceptor extends
             }
             catch ( Exception e )
             {
-                throw new LdapOperationErrorException( e.getMessage() );
+                throw new LdapOperationErrorException( e.getMessage(), e );
             }
         }
         else
@@ -1233,7 +1233,7 @@ public class SubentryInterceptor extends
             }
             catch ( Exception e )
             {
-                throw new LdapOperationException( e.getMessage() );
+                throw new LdapOperationException( e.getMessage(), e );
             }
         }
         else
@@ -1324,7 +1324,7 @@ public class SubentryInterceptor extends
             }
             catch ( Exception e )
             {
-                throw new LdapOperationException( e.getMessage() );
+                throw new LdapOperationException( e.getMessage(), e );
             }
         }
         else
@@ -1405,7 +1405,7 @@ public class SubentryInterceptor extends
             }
             catch ( Exception e )
             {
-                throw new LdapOperationException( e.getMessage() );
+                throw new LdapOperationException( e.getMessage(), e );
             }
         }
         else

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerInterceptor.java Thu Jun  9 17:59:44 2011
@@ -607,7 +607,7 @@ public class TriggerInterceptor extends 
         }
         catch ( Exception e )
         {
-            LdapOtherException lne = new LdapOtherException( e.getMessage() );
+            LdapOtherException lne = new LdapOtherException( e.getMessage(), e );
             lne.initCause( e );
             throw lne;
         }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java Thu Jun  9 17:59:44 2011
@@ -44,8 +44,8 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.i18n.I18n;
 import org.apache.directory.shared.ldap.model.constants.AuthenticationLevel;
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
-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.Entry;
 import org.apache.directory.shared.ldap.model.entry.Modification;
 import org.apache.directory.shared.ldap.model.entry.StringValue;
 import org.apache.directory.shared.ldap.model.entry.Value;
@@ -161,7 +161,7 @@ public class TriggerSpecCache
             }
             catch ( Exception e )
             {
-                throw new LdapOperationException( e.getMessage() );
+                throw new LdapOperationException( e.getMessage(), e );
             }
         }
     }

Modified: directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java (original)
+++ directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java Thu Jun  9 17:59:44 2011
@@ -28,10 +28,10 @@ import java.io.ObjectOutputStream;
 import jdbm.helper.Serializer;
 
 import org.apache.directory.server.i18n.I18n;
-import org.apache.directory.shared.ldap.model.entry.DefaultEntry;
+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.DefaultEntry;
 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.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException;
 import org.apache.directory.shared.ldap.model.name.Dn;
@@ -188,7 +188,7 @@ public class ServerEntrySerializer imple
                 }
                 catch ( LdapInvalidDnException lide )
                 {
-                    throw new IOException( lide.getMessage() );
+                    throw new IOException( lide.getMessage(), lide );
                 }
             }
             else
@@ -220,7 +220,7 @@ public class ServerEntrySerializer imple
                 catch ( LdapException ne )
                 {
                     // We weren't able to find the OID. The attribute will not be added
-                    throw new ClassNotFoundException( ne.getMessage() );
+                    throw new ClassNotFoundException( ne.getMessage(), ne );
                 }
             }
             

Modified: directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java (original)
+++ directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/LdifPartition.java Thu Jun  9 17:59:44 2011
@@ -306,7 +306,7 @@ public class LdifPartition extends Abstr
         }
         catch ( IOException ioe )
         {
-            throw new LdapOperationException( ioe.getMessage() );
+            throw new LdapOperationException( ioe.getMessage(), ioe );
         }
     }
 
@@ -405,7 +405,7 @@ public class LdifPartition extends Abstr
         }
         catch ( Exception e )
         {
-            throw new LdapOperationException( e.getMessage() );
+            throw new LdapOperationException( e.getMessage(), e );
         }
 
         // And delete the old entry's LDIF file
@@ -714,7 +714,7 @@ public class LdifPartition extends Abstr
         }
         catch ( IOException ioe )
         {
-            throw new LdapOperationException( ioe.getMessage() );
+            throw new LdapOperationException( ioe.getMessage(), ioe );
         }
     }
 
@@ -778,7 +778,7 @@ public class LdifPartition extends Abstr
         }
         catch ( LdapException le )
         {
-            throw new LdapLdifException( le.getMessage() );
+            throw new LdapLdifException( le.getMessage(), le );
         }
     }
 

Modified: directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java (original)
+++ directory/apacheds/trunk/ldif-partition/src/main/java/org/apache/directory/server/core/partition/ldif/SingleFileLdifPartition.java Thu Jun  9 17:59:44 2011
@@ -408,7 +408,7 @@ public class SingleFileLdifPartition ext
             }
             catch ( IOException e )
             {
-                LdapException le = new LdapException( e.getMessage() );
+                LdapException le = new LdapException( e.getMessage(), e );
                 le.initCause( e );
 
                 throw le;

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java (original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java Thu Jun  9 17:59:44 2011
@@ -151,7 +151,7 @@ public class ReplicaEventMessage impleme
         }
         catch ( ClassNotFoundException cnfe )
         {
-            throw new IOException( cnfe.getMessage() );
+            throw new IOException( cnfe.getMessage(), cnfe );
         }
         
         entry.setDn( dn );

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplRequestHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplRequestHandler.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplRequestHandler.java (original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplRequestHandler.java Thu Jun  9 17:59:44 2011
@@ -275,7 +275,7 @@ public class SyncReplRequestHandler impl
         {
             LOG.error( "Failed to handle the syncrepl request", e );
 
-            LdapException le = new LdapException( e.getMessage() );
+            LdapException le = new LdapException( e.getMessage(), e );
             le.initCause( e );
 
             throw le;

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java (original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java Thu Jun  9 17:59:44 2011
@@ -90,6 +90,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.model.entry.Entry;
 import org.apache.directory.shared.ldap.model.entry.Modification;
 import org.apache.directory.shared.ldap.model.entry.ModificationOperation;
+import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.LdapNoSuchAttributeException;
 import org.apache.directory.shared.ldap.model.exception.LdapOperationException;
 import org.apache.directory.shared.ldap.model.ldif.LdifUtils;
@@ -1445,7 +1446,7 @@ public class AddIT extends AbstractLdapT
      * 
      * @throws Exception 
      */
-    @Test( expected = LdapOperationException.class )
+    @Test( expected = LdapException.class )
     public void testAddEntry100KData() throws Exception
     {
         LdapConnection connection = ServerIntegrationUtils.getClientApiConnection( getLdapServer() );

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/avl/AvlPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/avl/AvlPartition.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/avl/AvlPartition.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/avl/AvlPartition.java Thu Jun  9 17:59:44 2011
@@ -113,7 +113,7 @@ public class AvlPartition extends Abstra
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/BTreePartition.java Thu Jun  9 17:59:44 2011
@@ -279,7 +279,7 @@ public abstract class BTreePartition<ID>
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.java Thu Jun  9 17:59:44 2011
@@ -236,7 +236,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapException( e.getMessage() );
+            throw new LdapException( e.getMessage(), e );
         }
     }
 
@@ -286,7 +286,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 
@@ -302,7 +302,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 
@@ -318,7 +318,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 
@@ -334,7 +334,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 
@@ -369,7 +369,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 
@@ -397,7 +397,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 
@@ -431,7 +431,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 
@@ -458,7 +458,7 @@ public abstract class AbstractXdbmPartit
         }
         catch ( Exception e )
         {
-            throw new LdapOperationErrorException( e.getMessage() );
+            throw new LdapOperationErrorException( e.getMessage(), e );
         }
     }
 

Modified: directory/shared/trunk/asn1/ber/src/main/java/org/apache/directory/shared/asn1/actions/AbstractReadInteger.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/asn1/ber/src/main/java/org/apache/directory/shared/asn1/actions/AbstractReadInteger.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/shared/trunk/asn1/ber/src/main/java/org/apache/directory/shared/asn1/actions/AbstractReadInteger.java (original)
+++ directory/shared/trunk/asn1/ber/src/main/java/org/apache/directory/shared/asn1/actions/AbstractReadInteger.java Thu Jun  9 17:59:44 2011
@@ -124,7 +124,7 @@ public abstract class AbstractReadIntege
                 .getLocalizedMessage() ) );
 
             // This will generate a PROTOCOL_ERROR
-            throw new DecoderException( ide.getMessage() );
+            throw new DecoderException( ide.getMessage(), ide );
         }
     }
 }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java?rev=1134019&r1=1134018&r2=1134019&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/shared/ldap/codec/actions/abandonRequest/InitAbandonRequest.java Thu Jun  9 17:59:44 2011
@@ -111,7 +111,7 @@ public class InitAbandonRequest extends 
                 .err( I18n.ERR_04076, Strings.dumpBytes(value.getData()), ide.getMessage() ) );
 
             // This will generate a PROTOCOL_ERROR
-            throw new DecoderException( ide.getMessage() );
+            throw new DecoderException( ide.getMessage(), ide );
         }
     }
 }



Mime
View raw message