Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 5EA609FA48A for ; Wed, 29 Nov 2006 02:49:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 75847-09 for ; Wed, 29 Nov 2006 02:49:38 -0400 (AST) X-Greylist: delayed 00:06:38.836064 by SQLgrey-1.7.4 Received: from web56601.mail.re3.yahoo.com (web56601.mail.re3.yahoo.com [66.196.97.45]) by postgresql.org (Postfix) with SMTP id CF7FE9FA430 for ; Wed, 29 Nov 2006 02:49:39 -0400 (AST) Received: (qmail 41742 invoked by uid 60001); 29 Nov 2006 06:42:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=UuqWCnQqD7kOqJ22HIFvA9H0pnX7JCoTHkJpU5YZmdHVWCR5CjB1YlkkoqADy5P4NrDpX12p2etyTsrA6BZjH5cPPklSsttNzhxARx4YTLQk8yuMIakvdoiyA0NvPXkl1sjzD3xhgj8VQZy7SqC0ohQn5ZDa9fUSl44jC9LErag=; X-YMail-OSG: tlHwEucVM1m8_gdAJvshzFVBodQaQhNn8CVdHx7gR0UTCJzsJjqMqxDlOsADagigqpT4uIPt4ZO_zmvK5QDNZPMiPAxpBJ9Q2AJzyFA4zsCr5WcgCV6FXqX7i7GWEwHo9YyI5CSZqdL2y9Y- Received: from [203.115.30.220] by web56601.mail.re3.yahoo.com via HTTP; Tue, 28 Nov 2006 22:42:59 PST Date: Tue, 28 Nov 2006 22:42:59 -0800 (PST) From: Thusitha Kodikara Subject: Re: How to use error cords in java To: janaka priyadarshana , pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1388136786-1164782579=:41585" Content-Transfer-Encoding: 8bit Message-ID: <898674.41585.qm@web56601.mail.re3.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.891 tagged_above=0 required=5 tests=BAYES_00, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS, HTML_50_60, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200611/166 X-Sequence-Number: 16208 --0-1388136786-1164782579=:41585 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 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. --0-1388136786-1164782579=:41585 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --0-1388136786-1164782579=:41585--