jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashley M (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-326) Initialize the cause of a login exception in the repository
Date Wed, 22 Feb 2006 20:36:39 GMT
Initialize the cause of a login exception in the repository
-----------------------------------------------------------

         Key: JCR-326
         URL: http://issues.apache.org/jira/browse/JCR-326
     Project: Jackrabbit
        Type: Improvement
  Components: core  
    Versions: 1.0    
    Reporter: Ashley M
    Priority: Trivial


===================================================================
--- RepositoryImpl.java8(revision 379871)
+++ RepositoryImpl.java (working copy)
@@ -1056,7 +1056,9 @@
             }
             authCtx.login();
         } catch (javax.security.auth.login.LoginException le) {
-            throw new LoginException(le.getMessage());
+           LoginException nle = new LoginException(le.getMessage());
+           nle.initCause(le);
+           throw nle;
         }

         // create session

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message