0 Replies Latest reply on Dec 18, 2006 8:58 AM by richard_cc

    Catch Errors

      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