View Single Post

   
  #2 (permalink)  
Old 04-24-2008, 06:15 PM
Craig Ringer
 
Posts: n/a
Default Re: Expressiveness of SQLException

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/...#getErrorCode()
http://java.sun.com/j2se/1.4.2/docs/...l#getSQLState()

--
Craig Ringer

--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

Reply With Quote