]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/common/exceptions/InternalCompilerError.java
ae3bdd87ca368ed06cddf8c42f209ea339c63b1f
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / common / exceptions / InternalCompilerError.java
1 package org.simantics.scl.compiler.common.exceptions;
2
3 import org.simantics.scl.compiler.errors.Locations;
4
5 public class InternalCompilerError extends RuntimeException {
6
7     private static final long serialVersionUID = -912160242899559098L;
8     public long location;
9     
10     public InternalCompilerError() {
11         super();
12         this.location = Locations.NO_LOCATION;
13     }
14     
15     public InternalCompilerError(long location) {
16         super();
17         this.location = location;
18     }
19
20     public InternalCompilerError(String message) {
21         super(message);
22         this.location = Locations.NO_LOCATION;
23     }
24     
25     public InternalCompilerError(long location, String message) {
26         super(message);
27         this.location = location;
28     }
29
30     public InternalCompilerError(Throwable cause) {
31         super(cause);
32         this.location = Locations.NO_LOCATION;
33     }
34    
35 }