seade       2003/10/28 15:42:07

  Modified:    src/java/org/apache/turbine/services/security/torque Tag:
                        TURBINE_2_3_BRANCH TorqueUser.java
  Log:
  Improve the message of the exception thrown when problems occur saving the 
persistent object.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.1   +7 -2      
jakarta-turbine-2/src/java/org/apache/turbine/services/security/torque/Attic/TorqueUser.java
  
  Index: TorqueUser.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/security/torque/Attic/TorqueUser.java,v
  retrieving revision 1.7
  retrieving revision 1.7.2.1
  diff -u -r1.7 -r1.7.2.1
  --- TorqueUser.java   19 Jul 2003 10:45:16 -0000      1.7
  +++ TorqueUser.java   28 Oct 2003 23:42:06 -0000      1.7.2.1
  @@ -64,6 +64,8 @@
   
   import javax.servlet.http.HttpSessionBindingEvent;
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   import org.apache.torque.om.Persistent;
   
   import org.apache.turbine.om.security.User;
  @@ -91,6 +93,8 @@
       implements User,
                  Persistent
   {
  +    private static Log log = LogFactory.getLog(TorqueUser.class);
  +    
       /** The date on which the user last accessed the application. */
       private Date lastAccessDate = null;
   
  @@ -207,7 +211,8 @@
           }
           catch (Exception e)
           {
  -            throw new TurbineSecurityException("User object said", e);
  +            throw new TurbineSecurityException("User object said " 
  +                    + e.getMessage(), e);
           }
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to