Обсуждение: How to get Error Codes

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

How to get Error Codes

От
"Sica, David (David)"
Дата:

I've just installed PostgreSQL 7.4.2 in hopes of being able to retrieve error codes from the database.  Is there any information out there on how to retrieve error codes using the latest JDBC driver?

Thanks,
David Sica

Re: How to get Error Codes

От
Kris Jurka
Дата:

On Wed, 7 Apr 2004, Sica, David (David) wrote:

> I've just installed PostgreSQL 7.4.2 in hopes of being able to retrieve
> error codes from the database.  Is there any information out there on
> how to retrieve error codes using the latest JDBC driver?
>

See java.sql.SQLException#getSQLState()

Kris Jurka