Thread: REPOST: error codes

REPOST: error codes

From
Felipe Schnack
Date:
  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


Re: REPOST: error codes

From
Dave Cramer
Date:
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)
>
>