db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Sfeir <rob...@codepuccino.com>
Subject [PATCH] Redundant Throws Clause, Or Exception Never Thrown
Date Mon, 17 May 2004 20:35:29 GMT
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);
>         }
> 

Mime
View raw message