comparison markup/input.py @ 213:bafa1cc49c2f

Store original message in exceptions as `msg` ivar.
author cmlenz
date Thu, 31 Aug 2006 08:49:37 +0000
parents 5b422db07359
children
comparison
equal deleted inserted replaced
212:e8c43127d9a9 213:bafa1cc49c2f
32 """Exception raised when fatal syntax errors are found in the input being 32 """Exception raised when fatal syntax errors are found in the input being
33 parsed.""" 33 parsed."""
34 34
35 def __init__(self, message, filename='<string>', lineno=-1, offset=-1): 35 def __init__(self, message, filename='<string>', lineno=-1, offset=-1):
36 Exception.__init__(self, message) 36 Exception.__init__(self, message)
37 self.msg = message
37 self.filename = filename 38 self.filename = filename
38 self.lineno = lineno 39 self.lineno = lineno
39 self.offset = offset 40 self.offset = offset
40 41
41 42
Copyright (C) 2012-2017 Edgewall Software