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#4264795

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264795
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to