From 41c2a41eaf3c2dd158a2a51947180f402918229e Mon Sep 17 00:00:00 2001 From: bjculkin Date: Fri, 24 Mar 2017 09:54:17 -0400 Subject: Implement Pratt parser. --- .../bjc/utils/parserutils/ParserException.java | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java (limited to 'BJC-Utils2/src/main/java/bjc/utils/parserutils/ParserException.java') 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); + } +} -- cgit v1.2.3