File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception reporting through JPA

 
Shridhar Raghavan
Ranch Hand
Posts: 71
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic