summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/parserutils/ParserException.java
diff options
context:
space:
mode:
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