From: Thusitha Kodikara <kthusi@yahoo.com>
To: janaka priyadarshana <rpjanaka@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: How to use error cords in java
Date: Tue, 28 Nov 2006 22:42:59 -0800 (PST)
Message-ID: <898674.41585.qm@web56601.mail.re3.yahoo.com> (raw)
In-Reply-To: <de1942f0611282045s6704c7cbmb4a2a1614e8f3e68@mail.gmail.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: kthusi@yahoo.com, rpjanaka@gmail.com
Subject: Re: How to use error cords in java
In-Reply-To: <898674.41585.qm@web56601.mail.re3.yahoo.com>
References: <de1942f0611282045s6704c7cbmb4a2a1614e8f3e68@mail.gmail.com> <898674.41585.qm@web56601.mail.re3.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox