db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henn...@apache.org
Subject cvs commit: jakarta-turbine-torque/src/java/org/apache/torque/util Transaction.java
Date Wed, 08 Jan 2003 11:06:30 GMT
henning     2003/01/08 03:06:30

  Modified:    src/java/org/apache/torque/util Transaction.java
  Log:
  Just log the error message, because this could be from
  
  <peerclass>.save() -> Error -> safeRollback
  
  and then, right after the safeRollback, the real exception is
  thrown. This is hidden here.
  
  Throwing a NullPointerException was a bad idea anyway... :-)
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-turbine-torque/src/java/org/apache/torque/util/Transaction.java
  
  Index: Transaction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/util/Transaction.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Transaction.java	12 Dec 2002 14:53:28 -0000	1.3
  +++ Transaction.java	8 Jan 2003 11:06:30 -0000	1.4
  @@ -176,7 +176,7 @@
       {
           if (con == null)
           {
  -            throw new NullPointerException("Connection object was null. "
  +            category.error("Connection object was null. "
                       + "This could be due to a misconfiguration of the "
                       + "DataSourceFactory. Check the logs and Torque.properties "
                       + "to better determine the cause.");
  
  
  

Mime
View raw message