DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23066>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23066 DriverManager.getConnection() throws DbcpException Summary: DriverManager.getConnection() throws DbcpException Product: Commons Version: 1.0 Final Platform: All OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Dbcp AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Why DbcpException ? getConnection should throw SQLException, when calling DriverManager.getConnection I expecting only SQLException when invoking getConnection (or Exception if there are some critical bugs in code). In some circumstances I can't handle DbcpException. DriverManagerConnectionFactory: public Connection createConnection() { try { if(null == _props) { if((_uname == null) || (_passwd == null)) { return DriverManager.getConnection(_connectUri); } else { return DriverManager.getConnection(_connectUri,_uname,_passwd); } } else { return DriverManager.getConnection(_connectUri,_props); } } catch(SQLException e) { throw new DbcpException(e); <---------------------- !!! } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
