summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java
diff options
context:
space:
mode:
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);
+ }
+}