You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Robert Sfeir <ro...@codepuccino.com> on 2004/05/17 22:35:29 UTC
[PATCH] Redundant Throws Clause, Or Exception Never Thrown
Index: ConnectionFactoryDBCPImpl.java
===================================================================
RCS file: /home/cvspublic/db-ojb/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java,v
retrieving revision 1.9
diff -r1.9 ConnectionFactoryDBCPImpl.java
97c97
< protected DataSource setupPool(JdbcConnectionDescriptor jcd) throws Exception
---
> protected DataSource setupPool(JdbcConnectionDescriptor jcd)
99a100
>
104c105
< catch (Exception e)
---
> catch (InstantiationException e)
106c107
< log.error("Could not instantiate jdbc driver", e);
---
> log.fatal("Unable to instantiate the driver class: " + jcd.getDriver() + " in ConnectionFactoryDBCImpl!" , e);
107a109,117
> catch (IllegalAccessException e)
> {
> log.fatal("IllegalAccessException while instantiating the driver class: " + jcd.getDriver() + " in ConnectionFactoryDBCImpl!" , e);
> }
> catch (ClassNotFoundException e)
> {
> log.fatal("Could not find the driver class : " + jcd.getDriver() + " in ConnectionFactoryDBCImpl!" , e);
> }
>