Re: does SQLException.getErrorCode() now works? - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: does SQLException.getErrorCode() now works?
Date
Msg-id 1071584447.1693.507.camel@localhost.localdomain
Whole thread Raw
In response to does SQLException.getErrorCode() now works?  (Marcos Truchado <mtruchado@telefonica.net>)
List pgsql-jdbc
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
>
>


pgsql-jdbc by date:

Previous
From: Marcos Truchado
Date:
Subject: does SQLException.getErrorCode() now works?
Next
From: Dave Cramer
Date:
Subject: Re: FW: OID, compatible=7.1 and getBinaryStream() in 7.4