db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quint...@apache.org
Subject cvs commit: jakarta-turbine-torque/src/java/org/apache/torque Torque.java
Date Sat, 25 Jan 2003 16:24:36 GMT
quintonm    2003/01/25 08:24:36

  Modified:    src/java/org/apache/torque Torque.java
  Log:
  getConnection() declares more excepion in the throws clause than it will really throw.
  
  Revision  Changes    Path
  1.78      +2 -5      jakarta-turbine-torque/src/java/org/apache/torque/Torque.java
  
  Index: Torque.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/Torque.java,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- Torque.java	9 Jan 2003 17:46:19 -0000	1.77
  +++ Torque.java	25 Jan 2003 16:24:36 -0000	1.78
  @@ -861,12 +861,9 @@
        * @return The requested connection.
        * @throws TorqueException Any exceptions caught during processing will be
        *         rethrown wrapped into a TorqueException.
  -     * @throws java.sql.SQLException never thrown
  -     * @throws javax.naming.NamingException never thrown
        */
       public static Connection getConnection()
  -        throws TorqueException, java.sql.SQLException,
  -               javax.naming.NamingException
  +        throws TorqueException
       {
           return getConnection(getDefaultDB());
       }
  
  
  

Mime
View raw message