]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/common/exceptions/InternalCompilerError.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / common / exceptions / InternalCompilerError.java
diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/common/exceptions/InternalCompilerError.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/common/exceptions/InternalCompilerError.java
new file mode 100755 (executable)
index 0000000..ae3bdd8
--- /dev/null
@@ -0,0 +1,35 @@
+package org.simantics.scl.compiler.common.exceptions;
+
+import org.simantics.scl.compiler.errors.Locations;
+
+public class InternalCompilerError extends RuntimeException {
+
+    private static final long serialVersionUID = -912160242899559098L;
+    public long location;
+    
+    public InternalCompilerError() {
+        super();
+        this.location = Locations.NO_LOCATION;
+    }
+    
+    public InternalCompilerError(long location) {
+        super();
+        this.location = location;
+    }
+
+    public InternalCompilerError(String message) {
+        super(message);
+        this.location = Locations.NO_LOCATION;
+    }
+    
+    public InternalCompilerError(long location, String message) {
+        super(message);
+        this.location = location;
+    }
+
+    public InternalCompilerError(Throwable cause) {
+        super(cause);
+        this.location = Locations.NO_LOCATION;
+    }
+   
+}