summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2017-03-24 09:54:17 -0400
committerbjculkin <bjculkin@mix.wvu.edu>2017-03-24 09:54:17 -0400
commit41c2a41eaf3c2dd158a2a51947180f402918229e (patch)
tree47cbe22f24c7c0898ae9154734973846224332d8 /BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java
parentb0d27faf67ec23b3d55786e00d4fd3b0d07567ee (diff)
Implement Pratt parser.
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java b/BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java
new file mode 100644
index 0000000..67812de
--- /dev/null
+++ b/BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java
@@ -0,0 +1,28 @@
+package bjc.utils.parserutils;
+
+/**
+ * General superclass for exceptions thrown during parsing.
+ *
+ * @author EVE
+ *
+ */
+public class ParserException extends Exception {
+ /**
+ * Create a new exception with the provided message.
+ *
+ * @param msg The message for the exception.
+ */
+ public ParserException(String msg) {
+ super(msg);
+ }
+
+ /**
+ * Create a new exception with the provided message and cause.
+ *
+ * @param msg The message for the exception.
+ * @param cause The cause of the exception.
+ */
+ public ParserException(String msg, Exception cause) {
+ super(msg, cause);
+ }
+}