Christopher Thill wrote:
> I am wondering if there is a way to do database
independent error trapping.
I'd like to invite you to the Torque-User mailing list at
torque-user db.apache.org
> eSql = (SQLException) t;
> if ( !eSql.getSQLState().equals("23505")
)
SQL-States are supposed to be standardized across different
SQL systems
so this should work no matter what database you're using.
See the
SQLSTATE specifications contained in the SQL 1999 standard.
Bye, Thomas.
------------------------------------------------------------
---------
To unsubscribe, e-mail: turbine-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: turbine-user-help jakarta.apache.org
|