aboutsummaryrefslogtreecommitdiff
path: root/neb/exceptions.py
diff options
context:
space:
mode:
authormryouse2022-06-28 23:44:22 +0000
committermryouse2022-06-28 23:44:22 +0000
commit76800f84af4833755c0f8b53d7768b02c7560cd4 (patch)
tree0b48cdc47d0af857c6e9975394ecc308e9337400 /neb/exceptions.py
parent3e2d950f7632d015e36007baeb7e39e16246436b (diff)
bugfix: fail gracefully when parens are uneven
Diffstat (limited to 'neb/exceptions.py')
-rw-r--r--neb/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/neb/exceptions.py b/neb/exceptions.py
index 8bbe000..cc0f915 100644
--- a/neb/exceptions.py
+++ b/neb/exceptions.py
@@ -11,3 +11,7 @@ class InterpretPanic(NebPanic):
class LexError(NebPanic):
def __init__(self, message, line):
super().__init__(f"line {line}: {message}")
+
+class ParseError(NebPanic):
+ def __init__(self, message, line):
+ super().__init__(f"line {line}: {message}")