StringBuilder message = new StringBuilder("");
if (this.hasCompilationErrors()){
for (KnowledgeBuilderErrors knowledgeBuilderErrors : compilationErrors) {
Iterator<KnowledgeBuilderError> iterator = knowledgeBuilderErrors.iterator();
while (iterator.hasNext()) {
KnowledgeBuilderError error = iterator.next();
message.append("Compilation error: ");
message.append(error.getMessage());
message.append("\n");
}
}
}
return message.toString();