aboutsummaryrefslogtreecommitdiff
path: root/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'exceptions.py')
-rw-r--r--exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/exceptions.py b/exceptions.py
index 229ec88..8bbe000 100644
--- a/exceptions.py
+++ b/exceptions.py
@@ -8,3 +8,6 @@ class InterpretPanic(NebPanic):
big_message += f" (got {arg})"
super().__init__(big_message)
+class LexError(NebPanic):
+ def __init__(self, message, line):
+ super().__init__(f"line {line}: {message}")