aboutsummaryrefslogtreecommitdiff
path: root/project/JavaCommon/src/com/modulus/dataread/expressions/LineNumberException.java
diff options
context:
space:
mode:
Diffstat (limited to 'project/JavaCommon/src/com/modulus/dataread/expressions/LineNumberException.java')
-rw-r--r--project/JavaCommon/src/com/modulus/dataread/expressions/LineNumberException.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/project/JavaCommon/src/com/modulus/dataread/expressions/LineNumberException.java b/project/JavaCommon/src/com/modulus/dataread/expressions/LineNumberException.java
new file mode 100644
index 0000000..29cb0a1
--- /dev/null
+++ b/project/JavaCommon/src/com/modulus/dataread/expressions/LineNumberException.java
@@ -0,0 +1,25 @@
+package com.modulus.dataread.expressions;
+
+public class LineNumberException extends RuntimeException{
+ private int line;
+
+ public LineNumberException( int line ) {
+ super();
+ this.line = line;
+ }
+
+ public LineNumberException(String message, int line) {
+ super(message + " line " + line);
+ this.line = line;
+ }
+
+ public LineNumberException(String message, Throwable cause, int line) {
+ super(message + " line " + line, cause);
+ this.line = line;
+ }
+
+ public int getLine(){
+ return line;
+ }
+
+}