Subject | Exception handling |
---|---|
Author | Juan Pedro López Sáez |
Post date | 2003-05-12T08:33:12Z |
Hi,
I'm a beginner in Java database programming. I don't know what is the best choice to do with exceptions.
AFAIK Firebird returns two different error codes: a standard SQLCODE and a Interbase/Firebird specific code, GDSCODE.
Should I check in my Java code for the SQLCODE, or should I better consider the specific GDSCODE? How could I get this information through the SQLException ( getMessage, getErrorCode?) and what kind of information should I expect from these methods?
Best regars,
Juan Pedro.
I'm a beginner in Java database programming. I don't know what is the best choice to do with exceptions.
AFAIK Firebird returns two different error codes: a standard SQLCODE and a Interbase/Firebird specific code, GDSCODE.
Should I check in my Java code for the SQLCODE, or should I better consider the specific GDSCODE? How could I get this information through the SQLException ( getMessage, getErrorCode?) and what kind of information should I expect from these methods?
Best regars,
Juan Pedro.
-- Juan Pedro López Sáez ALTIRIA TIC, S.L.L. www.altiria.com Centro de Empresas "La Arboleda" Carretera NIII km. 7,300 - Campus Sur 28031 MADRID Teléfono/Fax 91 33 111 98 Móvil 610 258 837 jpls@... |