db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util BrokerHelper.java
Date Fri, 25 Jun 2004 16:08:45 GMT
arminw      2004/06/25 09:08:45

  Modified:    src/java/org/apache/ojb/broker/util BrokerHelper.java
  Log:
  better error message
  
  Revision  Changes    Path
  1.57      +6 -5      db-ojb/src/java/org/apache/ojb/broker/util/BrokerHelper.java
  
  Index: BrokerHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/BrokerHelper.java,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- BrokerHelper.java	24 Jun 2004 15:22:57 -0000	1.56
  +++ BrokerHelper.java	25 Jun 2004 16:08:45 -0000	1.57
  @@ -18,18 +18,18 @@
   import java.sql.PreparedStatement;
   import java.sql.ResultSet;
   import java.sql.SQLException;
  +import java.util.Collection;
   import java.util.Iterator;
   import java.util.Map;
   import java.util.StringTokenizer;
   import java.util.WeakHashMap;
  -import java.util.Collection;
   
   import org.apache.ojb.broker.Identity;
  +import org.apache.ojb.broker.ManageableCollection;
  +import org.apache.ojb.broker.OJBRuntimeException;
   import org.apache.ojb.broker.PBKey;
   import org.apache.ojb.broker.PersistenceBrokerException;
   import org.apache.ojb.broker.PersistenceBrokerSQLException;
  -import org.apache.ojb.broker.ManageableCollection;
  -import org.apache.ojb.broker.OJBRuntimeException;
   import org.apache.ojb.broker.accesslayer.StatementManagerIF;
   import org.apache.ojb.broker.accesslayer.sql.SqlExistStatement;
   import org.apache.ojb.broker.core.PersistenceBrokerImpl;
  @@ -664,7 +664,8 @@
           }
           catch(SQLException e)
           {
  -            throw new PersistenceBrokerSQLException("Exist check failed for object " +
oid, e);
  +            throw new PersistenceBrokerSQLException("Exist check failed for identity "
+ oid
  +                    + ", sql was " + sql, e);
           }
           finally
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message