|Where Is The Documentation and Examples For Eclipselink Exceptions especially Persistence Exception [message #868400]
||Tue, 01 May 2012 22:22
| Bill R
Registered: May 2012
Is there any documentation anywhere that gives information on how to handle exceptions with eclipselink. Especially documentation with examples. As part of JPA it is supposed to give PersistenceException's but all I seem to see are things like: "Caused by: Exception [EclipseLink-4002]" which is close to useless (especially as this universal 4002 seems to be just a general sql exception that can encompass a number of issues).|
If I could find good documentation on how to handle these exceptions it would be great. There are a ton of web sites telling how to use eclipselink and JPA and they are all happy path scenarios. Not one I've found says how to trap and derive meaningful information from eclipselink exceptions. It is quite common for database interactions to bump into unique constraints etc. In fact I have found a number of issues on forums with this same problem and people trying to hack something from the native error message that usually also show up. But the PersistenceException is supposed to remove the need to do this, and it is not a good idea to do regardless.
So please, let me know what you know in terms of exception handling.
Powered by FUDForum
. Page generated in 0.01531 seconds