for(URL url: urls){
sb.append(url.getFile() + "\n");
}
sb.append("\nwith the classpath info for the missing class.");
DmcRuleException ex = new DmcRuleException(sb.toString(), null);
ex.source(source);
if (rc == null)
rc = new DmcRuleExceptionSet();
rc.add(ex);
// This is a show stopper, so just fire it now.
throw(rc);
}
catch(DmcValueException dve){
// If a value for an attribute doesn't pass the basic tests, we'll
// get one of these, just repackage it as a rule exception
DmcRuleException ex = new DmcRuleException(dve.getMessage(), null);
ex.source(source);
if (rc == null)
rc = new DmcRuleExceptionSet();
rc.add(ex);
}
catch(ResultException rex){
// If we can't find a class or attribute, we'll get one of these
DmcRuleException ex = new DmcRuleException(rex.getMessage(), null);
ex.source(source);
if (rc == null)
rc = new DmcRuleExceptionSet();
rc.add(ex);
// System.err.println(ex.toString());
}
if (ruledata == null)
continue;
try{
ruledata.resolveReferences(sm);
}
catch(DmcValueExceptionSet ex){
System.err.println(ex.toString() + "\nFile: " + ruledata.getFile() + " Line: " + ruledata.getLineNumber());
}
try{
DynamicInitIF rule = (DynamicInitIF) ruleDEF.newRuleInstance();
rule.setRuleData(ruledata);
allRuleData.add(ruledata);
// addThisRule((RuleIF) rule);
allRules.add((RuleIF) rule);
}
catch(Exception ex){
System.err.println(ex.toString());
}
}
}
}