Revision 650 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.api/src/main/java/org/gvsig/scripting/CompileErrorException.java
CompileErrorException.java | ||
---|---|---|
1 | 1 |
package org.gvsig.scripting; |
2 | 2 |
|
3 |
public class CompileErrorException extends RuntimeException {
|
|
3 |
import java.io.File;
|
|
4 | 4 |
|
5 |
public class CompileErrorException extends ScriptingErrorException { |
|
6 |
|
|
5 | 7 |
/** |
6 | 8 |
* |
7 | 9 |
*/ |
8 | 10 |
private static final long serialVersionUID = -7829204331513125285L; |
9 |
private String name; |
|
10 |
private int line; |
|
11 |
private int column; |
|
12 | 11 |
|
13 |
public CompileErrorException(String msg, String name, int line, int column) { |
|
14 |
super(msg); |
|
15 |
this.name = name; |
|
16 |
this.line = line; |
|
17 |
this.column = column; |
|
12 |
public CompileErrorException(String msg, File name, int line, int column) { |
|
13 |
super(msg, name, line, column); |
|
18 | 14 |
} |
19 | 15 |
|
20 |
public CompileErrorException(String msg, String name, int line, int column, Throwable cause) {
|
|
16 |
public CompileErrorException(String msg, File name, int line, int column, Throwable cause) {
|
|
21 | 17 |
this(msg, name, line, column); |
22 | 18 |
this.initCause(cause); |
23 | 19 |
} |
24 | 20 |
|
25 |
public CompileErrorException(String msg, String name, Throwable cause) {
|
|
21 |
public CompileErrorException(String msg, File name, Throwable cause) {
|
|
26 | 22 |
this(msg, name, -1, -1); |
27 | 23 |
this.initCause(cause); |
28 | 24 |
} |
29 |
|
|
30 |
public int getLineNumber() { |
|
31 |
return this.line; |
|
32 |
} |
|
33 |
|
|
34 |
public int getColumnNumber() { |
|
35 |
return this.column; |
|
36 |
} |
|
37 |
|
|
38 |
public String getScriptName() { |
|
39 |
return this.name; |
|
40 |
} |
|
41 | 25 |
} |
Also available in: Unified diff