Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Re: Expressiven...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 1938 of 2010
Post > Topic >>

Re: Expressiveness of SQLException

by craig@[EMAIL PROTECTED] (Craig Ringer) Apr 24, 2008 at 05:48 PM

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

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




 6 Posts in Topic:
Expressiveness of SQLException
dmigowski@[EMAIL PROTECTE  2008-04-24 09:21:07 
Re: Expressiveness of SQLException
craig@[EMAIL PROTECTED]   2008-04-24 17:48:01 
Re: Expressiveness of SQLException
oliver@[EMAIL PROTECTED]   2008-04-25 02:00:42 
Re: Expressiveness of SQLException
dmigowski@[EMAIL PROTECTE  2008-04-24 17:06:37 
Re: Expressiveness of SQLException
oliver@[EMAIL PROTECTED]   2008-04-25 09:19:52 
Re: Expressiveness of SQLException
dmigowski@[EMAIL PROTECTE  2008-04-25 09:11:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 22:47:32 CDT 2008.