[jboss-user] [JBoss Seam] - Catch Errors
richard_cc
do-not-reply at jboss.com
Mon Dec 18 08:58:36 EST 2006
Hi everybody,
I'm tryng with seam gen, seam seam generate-entities.
I'm making some experiment with a class that extends EntityHome and overrides persist() in this way (I need to catch errors):
Code:
@Override
@Transactional
public String persist() {
try {
return super.persist();
} catch (Exception e) {
return "error";
}
}
When I insert a record that violates a constraint, I catch the exception but I get an error on XXXEdit.seam. Where does that come from ? How can I eliminate it ?
Thanks in advance for helping
Ricardo Alba
Note: Excuse my English
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994677#3994677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994677
More information about the jboss-user
mailing list