|
Henri Yandell made changes - 16/May/06 10:01 AM
Henri Yandell made changes - 16/May/06 11:28 AM
Phil Steitz made changes - 10/Jul/06 12:27 PM
This patch replaces:
new SQLNestedException(msg, e); with: (SQLException) new SQLException(msg).initCause(e);
Dain Sundstrom made changes - 23/Jul/07 10:54 PM
SQLNestedException has been deprecated in 1.3 and will be removed in 1.4
Dain Sundstrom made changes - 24/Jul/07 05:27 PM
Removing the SQLNestedException would be an API breaking change so it would have to wait until a DBCP 2.0 release. To be perfectly honest, I don't see a 2.0 release on the horizon right now. However, I am not closing this as WONTFIX as it is always possible that there will be a 2.0 release at some point but please be aware that this is some time (possibly years) away.
Mark Thomas made changes - 15/Mar/09 10:20 PM
Forgot to include this:
See http://markmail.org/thread/qd2mowgifkka2gkd
Niall Pemberton made changes - 28/Nov/09 08:00 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Looking at the source, the only part of SQLNestedException used is the SQLNestedException(String,Throwable). However sometimes that latter argument is not a SQLException; which would be one reason not to use the setNextException message.
Another alternative would be to bring the minimum JDK up to 1.4 and switch to standard exception chaining.