Обсуждение: How to use error cords in java

Поиск
Список
Период
Сортировка

How to use error cords in java

От
"janaka priyadarshana"
Дата:
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...........

Re: How to use error cords in java

От
Thusitha Kodikara
Дата:
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.