]> gerrit.simantics Code Review - simantics/platform.git/blob
71b6193015b1b4aafb8d9e0cc226131a0f7f928b
[simantics/platform.git] /
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     public InternalCompilerError(long location, Throwable cause) {
36         super(cause);
37         this.location = location;
38     }
39    
40 }