]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/errors/CompilationError.java
(refs #7386) Minor SCL tools improvements
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / errors / CompilationError.java
index bf355285c13d343e4904559e5075c164ef0eb52e..a26823fe88a6ba31d3ebf89c603d6cf85524fc12 100644 (file)
@@ -9,14 +9,20 @@ public class CompilationError implements Comparable<CompilationError> {
     
     public final long location;
     public final String description;
+    public final ErrorSeverity severity;
     
-    public CompilationError(long location, String description) {
+    public CompilationError(long location, String description, ErrorSeverity severity) {
         if(description == null)
             throw new NullPointerException();
         this.location = location;
         this.description = description;
+        this.severity = severity;
     }
     
+    public CompilationError(long location, String description) {
+       this(location, description, ErrorSeverity.ERROR);
+    }          
+    
     public CompilationError(long location, Exception exception) {
         this(location, exceptionToString(exception));
     }