users@glassfish.java.net

How to catch Internal Exception

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 Jun 2007 11:51:30 PDT

For some reason, if I add a user, then try to add it again I get the correct EntiryExistsException however, if I try to add a user which exists in the database already (but say glassfish has been restarted since), I get a PSQLException saying duplicate primary key. Since this is an internal error is there any way to either catch it (which I'm guessing no), or prevent it from being able to occur?
[Message sent by forum member 'amattas' (amattas)]

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