Senior |
 |
Joined: Tue Sep 13, 2005 2:01 am Posts: 137
|
how to catch
org.hibernate.StaleObjectStateException
and display a message to user ?
I am using JBoss 4.0.4RC1. The exception wrapping has been changed from version to version. Now it is wrapped inside IllegalArgumentException.
This exception is caused by user and user should know about it.
EJBException has two method: getCauseException() and getCause().
Now both methods return IllegalArgumentException, not the StaleObjectStateException
.
Is there a better way to catch StaleObjectStateException?
Thanks!
|
|