1 package org.simantics.scl.compiler.top;
3 import org.simantics.scl.compiler.errors.CompilationError;
5 public class SCLExpressionCompilationException extends Exception {
7 private static final long serialVersionUID = 970640318254433797L;
9 private final CompilationError[] errors;
11 public SCLExpressionCompilationException(CompilationError[] errors) {
12 super(createMessage(errors));
16 private static String createMessage(CompilationError[] errors) {
17 StringBuilder b = new StringBuilder();
18 for(CompilationError error : errors)
19 b.append(error.description).append('\n');
23 public CompilationError[] getErrors() {