Example usage for org.springframework.transaction.interceptor RollbackRuleAttribute getExceptionName

List of usage examples for org.springframework.transaction.interceptor RollbackRuleAttribute getExceptionName

Introduction

In this page you can find the example usage for org.springframework.transaction.interceptor RollbackRuleAttribute getExceptionName.

Prototype

public String getExceptionName() 

Source Link

Document

Return the pattern for the exception name.

Usage

From source file:org.springframework.transaction.interceptor.RuleBasedTransactionAttribute.java

@Override
public String toString() {
    StringBuilder result = getAttributeDescription();
    if (this.rollbackRules != null) {
        for (RollbackRuleAttribute rule : this.rollbackRules) {
            String sign = (rule instanceof NoRollbackRuleAttribute ? PREFIX_COMMIT_RULE : PREFIX_ROLLBACK_RULE);
            result.append(',').append(sign).append(rule.getExceptionName());
        }/*from w ww  . j a  v a2  s  . c o  m*/
    }
    return result.toString();
}