]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler.dummy/src/org/simantics/scl/compiler/ErrorMessage.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler.dummy / src / org / simantics / scl / compiler / ErrorMessage.java
1 package org.simantics.scl.compiler;
2
3 public class ErrorMessage {
4     int line;
5     int start;
6     int stop;
7     String message;
8     
9     public ErrorMessage(int line, int start, int stop, String message) {
10         this.line = line;
11         this.start = start;
12         this.stop = stop;
13         this.message = message;
14     }
15     
16     public int getLine() {
17         return line;
18     }
19     
20     public int getStart() {
21         return start;
22     }
23     
24     public int getStop() {
25         return stop;
26     }
27     
28     public String getMessage() {
29         return message;
30     }
31     
32     @Override
33     public String toString() {
34         return "at " + line + ":" + start + "-" + stop + " " + message;
35     }
36 }