SQLException and error code

From: Peter(dot)Zoche(at)materna(dot)de
To: pgsql-jdbc(at)postgresql(dot)org
Subject: SQLException and error code
Date: 2005-07-26 13:19:53
Message-ID: 3617A3C21370D045B75C0A40A7A6530D0B37E191@ntexc2buc.do-office.buc.materna.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi!

I am using postgresql-8.0-310.jdbc3.jar in my application.
In order to get the error code from an SQLException I have
to use sqlexception.getSQLState(). Shouldn't it be
getErrorCode()?

Peter

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2005-07-26 14:04:20 Re: SQLException and error code
Previous Message Dave Cramer 2005-07-26 11:33:15 Re: work in progress: timestamp patch