ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | c-jdbc-commits List | October 2003 Index

<--  Date Index  --> <--  Thread Index  -->

CVS update of c-jdbc/src/org/objectweb/cjdbc/controller/backend (1 file)


    Date: Wednesday, October 29, 2003 @ 11:01:44
  Author: modrzyk
    Path: /cvsroot/c-jdbc/c-jdbc/src/org/objectweb/cjdbc/controller/backend

Modified: DriverCompliance.java

Replaced all catch block of SQLException by catch block
of Exception.
Reason is:
We had to consider:
- NullPointerException
- NotImplementedException
- NoSuchMethodException
whatever the driver below could throw as an exception.

MySQL driver was throwing a NPE while checking for DriverCompliance, and
so could not load the backend.

It's not really good exception handling but, we are merely interested
in knowing what methods the driver can support, not in finding 
the reason why such and such call failed.

Correct this if I am wrong.


-----------------------+
 DriverCompliance.java |   58 +++++++++++++++++++++---------------------------
 1 files changed, 26 insertions(+), 32 deletions(-)



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.