protected void setRollbackOnly(Transaction tx, final Throwable t) {
    """
	The <code>setRollbackOnly</code> method calls setRollbackOnly()
	on the invocation's transaction and logs any exceptions than may
	occur.
	
	@param tx the transaction
	@param t the exception to add problems to (may be {@code null})
    """
        try {
            tx.setRollbackOnly();
        } catch (Throwable t2) {
            EjbLogger.ROOT_LOGGER.failedToSetRollbackOnly(t2);
            if (t != null) {
                t.addSuppressed(t2);
            }
        }
    }
protected void setRollbackOnly(Transaction tx, final Throwable t) {
        try {
            tx.setRollbackOnly();
        } catch (Throwable t2) {
            EjbLogger.ROOT_LOGGER.failedToSetRollbackOnly(t2);
            if (t != null) {
                t.addSuppressed(t2);
            }
        }
    }
protected void setRollbackOnly ( Transaction tx , final Throwable t ) { try { tx . setRollbackOnly ( ) ; } catch ( Throwable t2 ) { EjbLogger . ROOT_LOGGER . failedToSetRollbackOnly ( t2 ) ; if ( t != null ) { t . addSuppressed ( t2 ) ; } } }
The <code>setRollbackOnly</code> method calls setRollbackOnly()
on the invocation's transaction and logs any exceptions than may
occur.

@param tx the transaction
@param t the exception to add problems to (may be {@code null})
The <code > setRollbackOnly< / code > method calls setRollbackOnly () on the invocation s transaction and logs any exceptions than may occur .