users@glassfish.java.net

Re: How get PostgreSQL Error Codes from PersistanceException

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 Nov 2007 17:48:17 PST

Can you check the length yourself in e.g. PreUpdate/PrePersist callbacks? Otherwise, you can look at the nested exception(s) to get the SQLException and extract the error code from it.

thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=247275