OpenQuizz
Une application de gestion des contenus pédagogiques
|
Additional Inherited Members | |
![]() | |
def | __init__ (self, pstr, loc=0, msg=None, elem=None) |
def | __getattr__ (self, aname) |
def | __str__ (self) |
def | __repr__ (self) |
def | markInputline (self, markerString=">!<") |
def | __dir__ (self) |
![]() | |
loc | |
msg | |
pstr | |
parserElement | |
args | |
Exception thrown when parse expressions don't match class; supported attributes by name are: - lineno - returns the line number of the exception text - col - returns the column number of the exception text - line - returns the line containing the exception text Example:: try: Word(nums).setName("integer").parseString("ABC") except ParseException as pe: print(pe) print("column: {}".format(pe.col)) prints:: Expected integer (at char 0), (line:1, col:1) column: 1