users@glassfish.java.net

How get PostgreSQL Error Codes from PersistanceException

From: <glassfish_at_javadesktop.org>
Date: Sat, 24 Nov 2007 13:55:40 PST

Hi

I have got length limits on varchar column in my datebase and I want to throw my own application exception but i have to catch exception (PersistanceException doesn't contains ths data )in facades and throw my own. I wanted to use PostgreSQL Error Codes but how to get String which will constains this data?
[Message sent by forum member 'b1n4ry' (b1n4ry)]

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