25
26
DEFAULTTEMPLATE = """Failed parsing production "%(production)s" @pos %(position)s (~line %(line)s:%(lineChar)s).\nExpected syntax: %(expected)s\nGot text: %(text)s"""
27
28
"""Create a string representation of the error"""
31
32
return '%s: %s'%( self.__class__.__name__, self.messageFormat() )
32
33
def messageFormat( self, template=None):