01: package org.drools.compiler;
02:
03: public class PackageBuilderErrors {
04: private DroolsError[] errors;
05:
06: public PackageBuilderErrors(DroolsError[] errors) {
07: this .errors = errors;
08: }
09:
10: public DroolsError[] getErrors() {
11: return errors;
12: }
13:
14: public String toString() {
15: final StringBuffer buf = new StringBuffer();
16: for (int i = 0, length = this.errors.length; i < length; i++) {
17: buf.append(errors[i]);
18: }
19: return buf.toString();
20: }
21:
22: }
|