Skip site navigation (1) Skip section navigation (2)

Re: Error codes in SQLException

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Cc: "Christian Rengstl" <Christian(dot)Rengstl(at)klinik(dot)uni-regensburg(dot)de>
Subject: Re: Error codes in SQLException
Date: 2007-10-30 12:44:55
Message-ID: 200710301444.56561.achill@matrix.gatewaynet.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Στις Τρίτη 30 Οκτώβριος 2007 12:06, ο/η Christian Rengstl έγραψε:
> Hi list,
>
> I was just wondering if there is a overview somewhere with the integer
> values returned by SQLException when calling getErrorCode().

Browsing at the sources of 7.4.12 (dont shout please!! i know we must upgrade 
in the future), i dont see any reference to getErrorCode() in PSQLException.

The right way however is to use the standardized getSQLState() according to
http://www.postgresql.org/docs/7.4/interactive/errcodes-appendix.html


> Thanks!
>
>
>
> Christian Rengstl M.A.
> Klinik und Poliklinik für Innere Medizin II
> Kardiologie - Forschung
> Universitätsklinikum Regensburg
> B3 1.388
> Franz-Josef-Strauss-Allee 11
> 93053 Regensburg
> Tel.: +49-941-944-7230
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

-- 
Achilleas Mantzios

In response to

pgsql-jdbc by date

Next:From: Albe LaurenzDate: 2007-10-30 13:38:06
Subject: Re: Error codes in SQLException
Previous:From: Christian RengstlDate: 2007-10-30 10:06:51
Subject: Error codes in SQLException

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group