summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/rgens/parser/RecurLimitException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/bjc/rgens/parser/RecurLimitException.java')
-rw-r--r--src/main/java/bjc/rgens/parser/RecurLimitException.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/bjc/rgens/parser/RecurLimitException.java b/src/main/java/bjc/rgens/parser/RecurLimitException.java
new file mode 100644
index 0000000..faeffb3
--- /dev/null
+++ b/src/main/java/bjc/rgens/parser/RecurLimitException.java
@@ -0,0 +1,35 @@
+package bjc.rgens.parser;
+
+/**
+ * The exception thrown when a rule exceeds its recurrence limit
+ *
+ * @author student
+ */
+public class RecurLimitException extends GrammarException {
+ /* 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 RecurLimitException(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 RecurLimitException(String msg, Exception cause) {
+ super(msg, cause);
+ }
+}