OpenQuizz
Une application de gestion des contenus pédagogiques
ParseBaseException Class Reference
Inheritance diagram for ParseBaseException:
Collaboration diagram for ParseBaseException:

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
 

Detailed Description

base exception class for all parsing runtime exceptions

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  pstr,
  loc = 0,
  msg = None,
  elem = None 
)

Member Function Documentation

◆ __dir__()

def __dir__ (   self)

◆ __getattr__()

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

◆ __repr__()

def __repr__ (   self)

◆ __str__()

def __str__ (   self)

◆ markInputline()

def markInputline (   self,
  markerString = ">!<" 
)
Extracts the exception line from the input string, and marks
   the location of the exception with a special symbol.

Field Documentation

◆ args

args

◆ loc

loc

◆ msg

msg

◆ parserElement

parserElement

◆ pstr

pstr

The documentation for this class was generated from the following file: