blob: e1aa32a4737defd4546ce9f41f0b35a07c14ca02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package syntaxParser;
public class SyntaxErrorException extends Exception {
private int line;
private int column;
public SyntaxErrorException(int line, int column) {
super("Syntax Error");
this.line = line;
this.column = column;
}
public SyntaxErrorException(int line, int column, String message) {
super(message);
this.line = line;
this.column = column;
}
public int getLine() {
return line;
}
public int getColumn() {
return column;
}
}
|