Commit afee1536 authored by Michael Büsch's avatar Michael Büsch

Add exception class for simulator bugs

Signed-off-by: Michael Büsch's avatarMichael Buesch <[email protected]>
parent 323fd537
......@@ -108,6 +108,13 @@ class AwlParserError(AwlSimError):
def getReport(self):
return self.doGetReport("AWL parser error")
class AwlSimBug(AwlSimError):
def __init__(self, message, *args, **kwargs):
message = "AWLSIM BUG: %s\n"\
"This bug should be reported to the awlsim developers." %\
AwlSimError.__init__(self, message, *args, **kwargs)
class AwlSimErrorText(AwlSimError):
def __init__(self, errorText):
AwlSimError.__init__(self, message = errorText)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment