-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJsonError.java
More file actions
44 lines (36 loc) · 1.01 KB
/
JsonError.java
File metadata and controls
44 lines (36 loc) · 1.01 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package api;
public class JsonError {
private int startLine;
private int startColumn;
private int endLine;
private int endColumn;
private String message;
private String fullMessage;
public JsonError(int startLine, int startColumn, int endLine, int endColumn, String fullMessage, String shortMessage) {
this.startLine = startLine;
this.startColumn = startColumn;
this.endLine = endLine;
this.endColumn = endColumn;
this.fullMessage = fullMessage;
this.message = shortMessage;
}
// Getters and setters (optional if you're using a serialization library)
public int getStartLine() {
return startLine;
}
public int getStartColumn() {
return startColumn;
}
public int getEndLine() {
return endLine;
}
public int getEndColumn() {
return endColumn;
}
public String getMessage() {
return message;
}
public String getFullMessage() {
return fullMessage;
}
}