Re: REPOST: error codes - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: REPOST: error codes
Date
Msg-id 1033052465.1964.68.camel@inspiron.cramers
Whole thread Raw
In response to REPOST: error codes  (Felipe Schnack <felipes@ritterdosreis.br>)
List pgsql-jdbc
Felipe,

Unfortunately the server doesn't have error codes as such. The best way
to deal with this at the moment is to look at your logs.

Dave
On Thu, 2002-09-26 at 10:35, Felipe Schnack wrote:
>   pgsql's jdbc driver is setting the error code when a SQLException is
> thrown? I got an duplicate primary key error, but getErrorCode() result
> is zero.
>   Detect which error occurred using getMessage() isn't a really good
> way...:-)
>
> --
>
> Felipe Schnack
> Analista de Sistemas
> felipes@ritterdosreis.br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> felipes@ritterdosreis.br
> Fone/Fax.: (51)32303328
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>




pgsql-jdbc by date:

Previous
From: Vernon Wu
Date:
Subject: Is the JDBC driver i18n compatible?
Next
From: Dave Cramer
Date:
Subject: Re: administering pgsql