summaryrefslogtreecommitdiff
path: root/RGens/src/main/java/bjc/rgens/parser/GrammarException.java
diff options
context:
space:
mode:
authorstudent <student@69.161.224.76>2018-03-29 11:38:02 -0400
committerstudent <student@69.161.224.76>2018-03-29 11:38:02 -0400
commit6aa15e30fa75211964428e386b4b6b0f2c66dbc5 (patch)
tree5beeb6016a94b284eeed80daf65b9c2800ec7e63 /RGens/src/main/java/bjc/rgens/parser/GrammarException.java
parentc921b00c99cf46bc33f724581ab9bde2b0d8bb6a (diff)
Rename package
Diffstat (limited to 'RGens/src/main/java/bjc/rgens/parser/GrammarException.java')
-rw-r--r--RGens/src/main/java/bjc/rgens/parser/GrammarException.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/RGens/src/main/java/bjc/rgens/parser/GrammarException.java b/RGens/src/main/java/bjc/rgens/parser/GrammarException.java
new file mode 100644
index 0000000..9eaa0a1
--- /dev/null
+++ b/RGens/src/main/java/bjc/rgens/parser/GrammarException.java
@@ -0,0 +1,36 @@
+package bjc.rgens.parser;
+
+/**
+ * The exception thrown when something goes wrong while parsing a
+ * grammar.
+ *
+ * @author student
+ */
+public class GrammarException extends RuntimeException {
+ /* Serialization ID. */
+ private static final long serialVersionUID = -7287427479316953668L;
+
+ /**
+ * Create a new grammar exception with the specified message.
+ *
+ * @param msg
+ * The message for this exception.
+ */
+ public GrammarException(String msg) {
+ super(msg);
+ }
+
+ /**
+ * Create a new grammar exception with the specified message and
+ * cause.
+ *
+ * @param msg
+ * The message for this exception.
+ *
+ * @param cause
+ * The cause of this exception.
+ */
+ public GrammarException(String msg, Exception cause) {
+ super(msg, cause);
+ }
+}