Thread: does SQLException.getErrorCode() now works?

does SQLException.getErrorCode() now works?

From
Marcos Truchado
Date:
Hi:
I'm wondeirng if SQLException => getErrorCode()| method works with the
new JDBC 7.4 drivers. I have tested it with the old 7.3 and did not
work, but I have read something about error codes in the postgresql
webpage, can anyone tell me if it is allready implemented?, if not, when
a error becomes, how to know what kind of error do I have?, I need to
know it to response in my program with this or that action. If yes,
where to find a list of error codes?.

Thanks very much.
|



Re: does SQLException.getErrorCode() now works?

From
Dave Cramer
Date:
error codes were only implemented in the 7.4 version of postgres, so a
7.3 db or driver won't know what to do with them.

The file to look in is org/postgresql/util/PSQLState.java


Dave

 On Tue, 2003-12-16 at 09:02, Marcos Truchado wrote:
> Hi:
> I'm wondeirng if SQLException => getErrorCode()| method works with the
> new JDBC 7.4 drivers. I have tested it with the old 7.3 and did not
> work, but I have read something about error codes in the postgresql
> webpage, can anyone tell me if it is allready implemented?, if not, when
> a error becomes, how to know what kind of error do I have?, I need to
> know it to response in my program with this or that action. If yes,
> where to find a list of error codes?.
>
> Thanks very much.
> |
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>