Jan Martiska [
https://community.jboss.org/people/jmartisk] created the discussion
"Re: Unable to catch RuntimeException in client EJB"
To view the discussion, visit:
https://community.jboss.org/message/783287#783287
--------------------------------------------------------------
In that case you can just rethrow the EJBTransactionRolledbackException so you don't
lose it..
catch (EJBTransactionRolledbackException e) {
if(e.getCause() instanceof SecurityBreakException) {
SecurityBreakException ex = (SecurityBreakException)e.getCause();
// parse the exception and show a meaningful message to user
} else
throw e;
}
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/783287#783287]
Start a new discussion in EJB3 at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]