Revision 650 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.api/src/main/java/org/gvsig/scripting/ExecuteErrorException.java

View differences:

ExecuteErrorException.java
1 1
package org.gvsig.scripting;
2 2

  
3
public class ExecuteErrorException extends RuntimeException {
3
import java.io.File;
4 4

  
5
public class ExecuteErrorException extends ScriptingErrorException {
6

  
5 7
	/**
6 8
	 * 
7 9
	 */
8 10
	private static final long serialVersionUID = 3733567933742742587L;
9
	private String name;
10
	private int line;
11
	private int column;
12 11

  
13
	public ExecuteErrorException(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 ExecuteErrorException(String msg, File name, int line, int column) {
13
		super(msg, name, line, column);
18 14
	}
19 15
	
20
	public ExecuteErrorException(String msg, String name, int line, int column, Throwable cause) {
16
	public ExecuteErrorException(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 ExecuteErrorException(String msg, String name, Throwable cause) {
21
	public ExecuteErrorException(String msg, File name, Throwable cause) {
26 22
		this(msg, name, -1, -1);
27 23
		this.initCause(cause);
28 24
	}
29 25
	
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 26
}

Also available in: Unified diff