wood burning stoves 2.0*
The moose likes Java in General and the fly likes Exception reporting through JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Exception reporting through JPA" Watch "Exception reporting through JPA" New topic

Exception reporting through JPA

Shridhar Raghavan
Ranch Hand

Joined: May 27, 2010
Posts: 71

I am using JPA for persistence. While developing my application i need to be able identify the invividual exceptions thrown to apply differing presentations. For eg : i need to show a different message when the db server is down, something else when the user has submit invalid data etc. How do i accomplish this if the JPA API just throws "it's own" wrapped exception while trying to do a CRUD operation to the database
I agree. Here's the link: http://aspose.com/file-tools
subject: Exception reporting through JPA
Similar Threads
java persistence api transaction problem
Do you think JPA will achieve what JDO could not?
Books, books, books.. Mastering EJB 3.0
difference betweet Hibernate and JPA
Errors with marking action method as @transactional