Mail Archive Home | c-jdbc-commits List | October 2003 Index
| <-- Date Index --> | <-- Thread Index --> |
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 --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.