/[classpath]/classpath/java/sql/DriverManager.java
ViewVC logotype

Diff of /classpath/java/sql/DriverManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by bryce, Fri Jun 21 05:34:12 2002 UTC revision 1.9 by cbj, Fri Apr 11 22:01:07 2003 UTC
# Line 209  public class DriverManager Line 209  public class DriverManager
209     * @param url The JDBC URL string to find a driver for.     * @param url The JDBC URL string to find a driver for.
210     *     *
211     * @return A <code>Driver</code> that can connect to the specified     * @return A <code>Driver</code> that can connect to the specified
212     * URL, or <code>null</code> if a suitable driver cannot be found.     * URL.
213     *     *
214     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs, or no suitable driver can be found.
215     */     */
216    public static Driver getDriver(String url) throws SQLException    public static Driver getDriver(String url) throws SQLException
217    {    {
# Line 224  public class DriverManager Line 224  public class DriverManager
224            return d;            return d;
225        }        }
226    
227      return null;      throw new SQLException("No driver found for " + url);
228    }    }
229    
230    /**    /**

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26