Re: Expressiveness of SQLException - Mailing list pgsql-jdbc

From Craig Ringer
Subject Re: Expressiveness of SQLException
Date
Msg-id 48105751.4080902@postnewspapers.com.au
Whole thread Raw
In response to Expressiveness of SQLException  (Daniel Migowski <dmigowski@ikoffice.de>)
List pgsql-jdbc
Daniel Migowski wrote:

> When this function is called by JDBC, the only information stored in the
> exception is:
>
>     ERROR: value too long for type character varying(255)
>
> Which makes debugging from server logfiles much harder. I expected to
> have some more exceptions encapsulated (retrievable with
> getNextException on PSQLException), but found nothing.

http://java.sun.com/j2se/1.4.2/docs/api/java/sql/SQLException.html#getErrorCode()
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/SQLException.html#getSQLState()

--
Craig Ringer

pgsql-jdbc by date:

Previous
From: Daniel Migowski
Date:
Subject: Expressiveness of SQLException
Next
From: Chris Mattmiller
Date:
Subject: Re: Login Roles