Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception reporting through JPA

 
Shridhar Raghavan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic