On Sat, 1 May 2010, Maxime L?vesque wrote:
> The method SQLException.getErrorCode of the jdbc driver systematically
> returns 0,
>
> http://www.postgresql.org/docs/8.4/interactive/errcodes-appendix.html
As I said earlier you need to check SQLException.getSQLState, not
getErrorCode. As you can see the error conditions listed in the appendix
are not all numeric so they cannot be returned via getErrorCode.
Kris Jurka