You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2015/05/22 13:58:07 UTC

directory-fortress-realm git commit: FC-105 - [fortress-realm] - include original exception in throw

Repository: directory-fortress-realm
Updated Branches:
  refs/heads/master df1b369a0 -> 3d9de368d


FC-105 - [fortress-realm] - include original exception in throw


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

Branch: refs/heads/master
Commit: 3d9de368d59c3ff55697e2b3ee0897ae8c306093
Parents: df1b369
Author: Shawn McKinney <sm...@apache.org>
Authored: Fri May 22 06:58:03 2015 -0500
Committer: Shawn McKinney <sm...@apache.org>
Committed: Fri May 22 06:58:03 2015 -0500

----------------------------------------------------------------------
 .../apache/directory/fortress/realm/J2eePolicyMgrImpl.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/3d9de368/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java
----------------------------------------------------------------------
diff --git a/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java b/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java
index d52a5bf..03b10c4 100644
--- a/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java
+++ b/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java
@@ -554,7 +554,7 @@ public class J2eePolicyMgrImpl implements J2eePolicyMgr
             catch ( IOException ioe )
             {
                 String error = "serialize caught IOException: " + ioe;
-                throw new SecurityException( org.apache.directory.fortress.realm.GlobalIds.CONTEXT_SERIALIZATION_FAILED, error);
+                throw new SecurityException( org.apache.directory.fortress.realm.GlobalIds.CONTEXT_SERIALIZATION_FAILED, error, ioe );
             }
         }
         
@@ -581,17 +581,17 @@ public class J2eePolicyMgrImpl implements J2eePolicyMgr
         }
         catch (java.io.UnsupportedEncodingException e)
         {
-            throw new SecurityException( org.apache.directory.fortress.realm.GlobalIds.CONTEXT_DESERIALIZATION_FAILED_UNSUPPORTED_ENCODING, "deserialize caught UnsupportedEncodingException:" + e);
+            throw new SecurityException( org.apache.directory.fortress.realm.GlobalIds.CONTEXT_DESERIALIZATION_FAILED_UNSUPPORTED_ENCODING, "deserialize caught UnsupportedEncodingException:" + e, e );
         }
         catch (IOException e)
         {
             LOG.warn( "deserialize caught IOException:" + e);
-            throw new SecurityException( org.apache.directory.fortress.realm.GlobalIds.CONTEXT_DESERIALIZATION_FAILED_IO, "deserialize caught IOException:" + e);
+            throw new SecurityException( org.apache.directory.fortress.realm.GlobalIds.CONTEXT_DESERIALIZATION_FAILED_IO, "deserialize caught IOException:" + e, e );
         }
         catch (ClassNotFoundException e)
         {
             LOG.warn( "deserialize caught ClassNotFoundException:" + e);
-            throw new SecurityException( org.apache.directory.fortress.realm.GlobalIds.CONTEXT_DESERIALIZATION_FAILED_CLASS_NOT_FOUND, "deserialize caught ClassNotFoundException:" + e);
+            throw new SecurityException( org.apache.directory.fortress.realm.GlobalIds.CONTEXT_DESERIALIZATION_FAILED_CLASS_NOT_FOUND, "deserialize caught ClassNotFoundException:" + e, e );
         }
     }
 }