summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/parserutils/ParserException.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-10-08 22:39:59 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-10-08 22:39:59 -0300
commitc82e3b3b2de0633317ec8fc85925e91422820597 (patch)
tree96567416ce23c5ce85601f9cedc3a94bb1c55cba /base/src/main/java/bjc/utils/parserutils/ParserException.java
parentb3ac1c8690c3e14c879913e5dcc03a5f5e14876e (diff)
Start splitting into maven modules
Diffstat (limited to 'base/src/main/java/bjc/utils/parserutils/ParserException.java')
-rw-r--r--base/src/main/java/bjc/utils/parserutils/ParserException.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/base/src/main/java/bjc/utils/parserutils/ParserException.java b/base/src/main/java/bjc/utils/parserutils/ParserException.java
new file mode 100644
index 0000000..ae33aba
--- /dev/null
+++ b/base/src/main/java/bjc/utils/parserutils/ParserException.java
@@ -0,0 +1,36 @@
+package bjc.utils.parserutils;
+
+/**
+ * General superclass for exceptions thrown during parsing.
+ *
+ * @author EVE
+ *
+ */
+public class ParserException extends Exception {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 631298568113373233L;
+
+ /**
+ * Create a new exception with the provided message.
+ *
+ * @param msg
+ * The message for the exception.
+ */
+ public ParserException(final 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(final String msg, final Exception cause) {
+ super(msg, cause);
+ }
+} \ No newline at end of file