directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-core git commit: FC-105 - [fortress-core] - stack trace may be lost
Date Fri, 22 May 2015 13:18:50 GMT
Repository: directory-fortress-core
Updated Branches:
  refs/heads/master 5744305b4 -> ce90d0bfc


FC-105 - [fortress-core] - stack trace may be lost


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/ce90d0bf
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/ce90d0bf
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/ce90d0bf

Branch: refs/heads/master
Commit: ce90d0bfc63e2013beb7e98679e0dbf09e1c1b68
Parents: 5744305
Author: Shawn McKinney <smckinney@apache.org>
Authored: Fri May 22 08:18:44 2015 -0500
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Fri May 22 08:18:44 2015 -0500

----------------------------------------------------------------------
 .../apache/directory/fortress/core/cfg/ConfigDAO.java | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/ce90d0bf/src/main/java/org/apache/directory/fortress/core/cfg/ConfigDAO.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/cfg/ConfigDAO.java b/src/main/java/org/apache/directory/fortress/core/cfg/ConfigDAO.java
index ed037a3..1323c04 100755
--- a/src/main/java/org/apache/directory/fortress/core/cfg/ConfigDAO.java
+++ b/src/main/java/org/apache/directory/fortress/core/cfg/ConfigDAO.java
@@ -132,14 +132,14 @@ final class ConfigDAO extends ApacheDsDataProvider
         {
             String warning = "create config dn [" + dn + "] caught LdapEntryAlreadyExistsException="
                 + e.getMessage() + " msg=" + e.getMessage();
-            throw new CreateException( GlobalErrIds.FT_CONFIG_ALREADY_EXISTS, warning );
+            throw new CreateException( GlobalErrIds.FT_CONFIG_ALREADY_EXISTS, warning, e
);
         }
         catch ( LdapException e )
         {
             String error;
             error = "create config dn [" + dn + "] caught LDAPException=" + e.getMessage();
             LOG.error( error, e );
-            throw new CreateException( GlobalErrIds.FT_CONFIG_CREATE_FAILED, error );
+            throw new CreateException( GlobalErrIds.FT_CONFIG_CREATE_FAILED, error, e );
         }
         finally
         {
@@ -178,7 +178,7 @@ final class ConfigDAO extends ApacheDsDataProvider
         catch ( LdapException e )
         {
             String error = "update dn [" + dn + "] caught LDAPException=" + e.getMessage();
-            throw new UpdateException( GlobalErrIds.FT_CONFIG_UPDATE_FAILED, error );
+            throw new UpdateException( GlobalErrIds.FT_CONFIG_UPDATE_FAILED, error, e );
         }
         finally
         {
@@ -206,7 +206,7 @@ final class ConfigDAO extends ApacheDsDataProvider
         catch ( LdapException e )
         {
             String error = "remove dn [" + dn + "] LDAPException=" + e.getMessage();
-            throw new RemoveException( GlobalErrIds.FT_CONFIG_DELETE_FAILED, error );
+            throw new RemoveException( GlobalErrIds.FT_CONFIG_DELETE_FAILED, error, e );
         }
         finally
         {
@@ -243,7 +243,7 @@ final class ConfigDAO extends ApacheDsDataProvider
         catch ( LdapException e )
         {
             String error = "remove props dn [" + dn + "] caught LDAPException=" + e.getMessage();
-            throw new UpdateException( GlobalErrIds.FT_CONFIG_DELETE_PROPS_FAILED, error
);
+            throw new UpdateException( GlobalErrIds.FT_CONFIG_DELETE_PROPS_FAILED, error,
e );
         }
         finally
         {
@@ -274,12 +274,12 @@ final class ConfigDAO extends ApacheDsDataProvider
         catch ( LdapNoSuchObjectException e )
         {
             String warning = "getConfig COULD NOT FIND ENTRY for dn [" + dn + "]";
-            throw new FinderException( GlobalErrIds.USER_NOT_FOUND, warning );
+            throw new FinderException( GlobalErrIds.USER_NOT_FOUND, warning, e );
         }
         catch ( LdapException e )
         {
             String error = "getConfig dn [" + dn + "] caught LdapException=" + e.getMessage();
-            throw new FinderException( GlobalErrIds.FT_CONFIG_READ_FAILED, error );
+            throw new FinderException( GlobalErrIds.FT_CONFIG_READ_FAILED, error, e );
         }
         finally
         {


Mime
View raw message