aboutsummaryrefslogtreecommitdiff
path: root/project/JavaCommon/src/com/modulus/dataread/expressions/LineNumberException.java
diff options
context:
space:
mode:
authorJoshua Rahm <joshua.rahm@colorado.edu>2015-01-27 18:40:32 -0700
committerJoshua Rahm <joshua.rahm@colorado.edu>2015-01-27 18:40:32 -0700
commit5f3fb9afece2125cbeba79d61a8d88460b7878d7 (patch)
treeb0e1e60bae9927a9449561bf7fe9431a54d12be9 /project/JavaCommon/src/com/modulus/dataread/expressions/LineNumberException.java
downloadLegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.tar.gz
LegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.tar.bz2
LegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.zip
initial commit
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;
+ }
+
+}