List Info

Thread: Re: Database independent error trapping.




Re: Database independent error trapping.
country flaguser name
Germany
2007-02-10 14:02:52
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-userdb.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-unsubscribejakarta.apache.org
For additional commands, e-mail: turbine-user-helpjakarta.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )