Hi,
what about something like this:
| catch(Exception e)
| {
| if (e.getCause() instanceof ConstraintViolationException)
| {
| ...
| }
| else if (e.getCause() instanceof LockAcquisitionException)
| {
| ...
| }
|
| //Maybe also check e.getCause().getCause() and so on!
| }
Hope this helps
Wolfgang
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264795#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...