OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
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) |
Data Fields | |
loc | |
msg | |
pstr | |
parserElement | |
args | |
base exception class for all parsing runtime exceptions
def __init__ | ( | self, | |
pstr, | |||
loc = 0 , |
|||
msg = None , |
|||
elem = None |
|||
) |
def __dir__ | ( | self | ) |
def __getattr__ | ( | self, | |
aname | |||
) |
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
def __repr__ | ( | self | ) |
def __str__ | ( | self | ) |
def markInputline | ( | self, | |
markerString = ">!<" |
|||
) |
Extracts the exception line from the input string, and marks the location of the exception with a special symbol.
args |
loc |
msg |
parserElement |
pstr |