MPC/parser/lexererr.py

15 lines
324 B
Python
Raw Normal View History

2018-12-04 02:05:06 +07:00
class ErrorToken(Exception):
def __init__(self, s):
self.message = "Error Token " + s
class UncloseString(Exception):
def __init__(self, s):
self.message = "Unclosed String: " + s
class IllegalEscape(Exception):
def __init__(self, s):
self.message = "Illegal Escape In String: " + s