users@glassfish.java.net

Re: EclipseLink - that's a little more information than I needed (in the log..)

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 May 2010 08:50:01 PDT

I guess you have some functions that manipulates the calls to the database.
You can wrap the calls to these functions with try-catch block and intercept all javax.persistence.PersistenceException.
If you need more specific data on the nature of the problem, I believe you can look at the cause and cast the underlying exception to some EclipseLink object.
Then, you can decide whether to report something to the log or just print nice message to the user.
[Message sent by forum member 'gamliela']

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