Subject Re: Exception handling
Author Roman Rokytskyy

> 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?

SQLException.getErrorCode() will return you GDSCODE (something like
335544321). There is no method to access SQLCODE.

Best regards,
Roman Rokytskyy