Re: How to use error cords in java - Mailing list pgsql-jdbc

From Thusitha Kodikara
Subject Re: How to use error cords in java
Date
Msg-id 898674.41585.qm@web56601.mail.re3.yahoo.com
Whole thread Raw
In response to How to use error cords in java  ("janaka priyadarshana" <rpjanaka@gmail.com>)
List 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@gmail.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.

pgsql-jdbc by date:

Previous
From: "janaka priyadarshana"
Date:
Subject: How to use error cords in java
Next
From: Dave Cramer
Date:
Subject: Re: release for 8.2