public void putExceptionThrownRule(ExceptionThrownRule exceptionThrownRule) {
        exceptionThrownRuleList.add(exceptionThrownRule);

        String[] exceptionTypes = exceptionThrownRule.getExceptionTypes();
        if (exceptionTypes != null) {
            for (String exceptionType : exceptionTypes) {
                if (exceptionType != null) {
                    if (!exceptionThrownRuleMap.containsKey(exceptionType)) {
                        exceptionThrownRuleMap.put(exceptionType, exceptionThrownRule);
                    }
                }
            }
        } else {
            defaultExceptionThrownRule = exceptionThrownRule;
        }
    }
public void putExceptionThrownRule ( ExceptionThrownRule exceptionThrownRule ) { exceptionThrownRuleList . add ( exceptionThrownRule ) ; String [ ] exceptionTypes = exceptionThrownRule . getExceptionTypes ( ) ; if ( exceptionTypes != null ) { for ( String exceptionType : exceptionTypes ) { if ( exceptionType != null ) { if ( ! exceptionThrownRuleMap . containsKey ( exceptionType ) ) { exceptionThrownRuleMap . put ( exceptionType , exceptionThrownRule ) ; } } } } else { defaultExceptionThrownRule = exceptionThrownRule ; } }
Puts the exception thrown rule.

@param exceptionThrownRule the exception thrown rule