Re: How to use error cords in java

From: Thusitha Kodikara <kthusi(at)yahoo(dot)com>
To: janaka priyadarshana <rpjanaka(at)gmail(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: How to use error cords in java
Date: 2006-11-29 06:42:59
Message-ID: 898674.41585.qm@web56601.mail.re3.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi,

I am not a Java expert. But generally in JDBC you should be able to get those information using the methods getErrorCode() , getSQLState() etc. in the SQLException class. Have you checked the documentation for that class?

Regards,
-Thusitha

janaka priyadarshana <rpjanaka(at)gmail(dot)com> wrote: Hi .............

I want to get the database error cord return by the database, to identify the error message and other messages.

how can i use database cords, in my java program

please help me....

thank you.......

--
...........Janaka Priyadarshana...........


---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2006-11-29 12:43:17 Re: release for 8.2
Previous Message janaka priyadarshana 2006-11-29 04:45:03 How to use error cords in java