What is flagging an error for you?
Eclipse plugin shows error, but it compiles.
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("Sample.drl"),
ResourceType.DRL);
*KnowledgeBuilderErrors errors = kbuilder.getErrors();*
if (errors.size() > 0) {
for (KnowledgeBuilderError error : errors) {
System.err.println(error);
}
throw new IllegalArgumentException("Could not parse knowledge.");
}
The getErrors() doesn't return any errors.
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-fusion-how-to-I-catch-an-Excepti...
Sent from the Drools: User forum mailing list archive at
Nabble.com.