summaryrefslogtreecommitdiff
path: root/JPratt/src/main/java/bjc/pratt/tokens/ExpectionNotMet.java
diff options
context:
space:
mode:
authorBen Culkin <scorpress@gmail.com>2022-08-16 23:03:27 -0400
committerBen Culkin <scorpress@gmail.com>2022-08-16 23:03:27 -0400
commitcea3e47938322b97c318dea38dc0d649e196dc1b (patch)
tree0ceef0bafbfed7aa5802e8fc526c0c98276f1fff /JPratt/src/main/java/bjc/pratt/tokens/ExpectionNotMet.java
parent4869146748ed51eb212935d2b971388fb9e73d37 (diff)
Refactor to add backtracking support
This probably doesn't help w/ error messages, but it enables some cool ideas where syntax can be reused in cases where it would otherwise be invalid
Diffstat (limited to 'JPratt/src/main/java/bjc/pratt/tokens/ExpectionNotMet.java')
-rw-r--r--JPratt/src/main/java/bjc/pratt/tokens/ExpectionNotMet.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/JPratt/src/main/java/bjc/pratt/tokens/ExpectionNotMet.java b/JPratt/src/main/java/bjc/pratt/tokens/ExpectionNotMet.java
new file mode 100644
index 0000000..2bd45e2
--- /dev/null
+++ b/JPratt/src/main/java/bjc/pratt/tokens/ExpectionNotMet.java
@@ -0,0 +1,23 @@
+package bjc.pratt.tokens;
+
+import bjc.utils.parserutils.ParserException;
+
+/**
+ * The exception thrown when an expectation fails.
+ *
+ * @author EVE
+ *
+ */
+public class ExpectionNotMet extends ParserException {
+ private static final long serialVersionUID = 4299299480127680805L;
+
+ /**
+ * Create a new exception with the specified message.
+ *
+ * @param msg
+ * The message of the exception.
+ */
+ public ExpectionNotMet(final String msg) {
+ super(msg);
+ }
+} \ No newline at end of file