code: public void onError(Exception e, Propagation propagation, Class<? extends Exception>[] noRollbackFor,
                          Class<? extends Exception>[] rollbackFor, String interceptionId, TransactionCallback callback) throws SystemException, HeuristicRollbackException, HeuristicMixedException, InvalidTransactionException {
          Transaction current = getActiveTransaction();
          if (current != null) {
              // We have a transaction.
              // Check whether or not the transaction needs to be marked as rollback only.
              if (!Arrays.asList(noRollbackFor).contains(e.getClass())) {
                  if (Arrays.asList(rollbackFor).contains(e.getClass()) || rollbackFor.length == 0) {
                      current.setRollbackOnly();
                  }
              }
              onExit(propagation, interceptionId, callback);
          }
      }
docs: A transactional bloc has thrown an exception. This method decides what needs to be done in that case.
  
  @param e              the exception
  @param propagation    the propagation strategy
  @param noRollbackFor  the set of exceptions that does not make the current transaction to rollback
  @param rollbackFor    the set of exceptions that makes the current transaction to rollback
  @param interceptionId an identifier for the interception, used for logging.
  @param callback       the transaction callback
  @throws SystemException             thrown by the transaction manager to indicate that it has encountered an
  unexpected error condition that prevents future transaction services from
  proceeding.
  @throws HeuristicRollbackException  thrown by the commit operation to report that a heuristic decision was made
  and that all relevant updates have been rolled back.
  @throws HeuristicMixedException     thrown to report that a heuristic decision was made and that some relevant
  updates have been committed and others have been rolled back.
  @throws InvalidTransactionException the request carried an invalid transaction context.