pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
How to use error cords in java 2+ messages / 2 participants [nested] [flat]
* How to use error cords in java @ 2006-11-29 04:45 janaka priyadarshana <rpjanaka@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: janaka priyadarshana @ 2006-11-29 04:45 UTC (permalink / raw) To: pgsql-jdbc Hi ............. I want to get the database<http://www.daniweb.com/techtalkforums/post281785.html#>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........... ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to use error cords in java @ 2006-11-29 06:42 Thusitha Kodikara <kthusi@yahoo.com> parent: janaka priyadarshana <rpjanaka@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Thusitha Kodikara @ 2006-11-29 06:42 UTC (permalink / raw) To: janaka priyadarshana <rpjanaka@gmail.com>; 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. ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-11-29 06:42 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2006-11-29 04:45 How to use error cords in java janaka priyadarshana <rpjanaka@gmail.com> 2006-11-29 06:42 ` Thusitha Kodikara <kthusi@yahoo.com>
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