Thread: How to get Error Codes

How to get Error Codes

From
"Sica, David (David)"
Date:

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

From
Kris Jurka
Date:
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